Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Jan 30, 2024
1 parent 6299eba commit ec67887
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/sw/client/common/command/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ void update_packages(SwClientContext &swctx) {
prefix = swctx.getOptions().options_service.args[0];
}
auto all_pkgs = pdb.getMatchingPackages(prefix);
for (int pkgid = 0; auto &&ppath : all_pkgs) {
LOG_INFO(logger, "[" << ++pkgid << "/" << all_pkgs.size() << "] " << ppath.toString());
for (int pkgidn = 0; auto &&ppath : all_pkgs) {
LOG_INFO(logger, "[" << ++pkgidn << "/" << all_pkgs.size() << "] " << ppath.toString());
auto versions = pdb.getVersionsForPackage(ppath);
if (versions.empty() || versions.rbegin()->isBranch()) {
continue;
Expand Down Expand Up @@ -367,12 +367,12 @@ struct package_updater {
prefix = swctx.getOptions().options_service.args[0];
}
auto all_pkgs = pdb.getMatchingPackages(prefix);
for (int pkgid = 0; auto &&ppath : all_pkgs) {
if (swctx.getOptions().options_service.start_id > pkgid) {
++pkgid;
for (int pkgidn = 0; auto &&ppath : all_pkgs) {
if (swctx.getOptions().options_service.start_id > pkgidn) {
++pkgidn;
continue;
}
LOG_INFO(logger, "[" << ++pkgid << "/" << all_pkgs.size() << "] " << ppath.toString());
LOG_INFO(logger, "[" << ++pkgidn << "/" << all_pkgs.size() << "] " << ppath.toString());
auto versions = pdb.getVersionsForPackage(ppath);
if (versions.empty() || versions.rbegin()->isBranch()) {
continue;
Expand Down

0 comments on commit ec67887

Please sign in to comment.