Skip to content

Commit

Permalink
Fix nix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Oct 17, 2023
1 parent e772dbb commit ad5ab37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/sw/client/common/command/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#include <nlohmann/json.hpp>
#include <primitives/http.h>

#include <format>

#include <primitives/log.h>
DECLARE_STATIC_LOGGER(logger, "service");

Expand All @@ -34,7 +32,7 @@ void update_packages(SwClientContext &swctx) {
auto &pdb = rs.getPackagesDatabase();
auto all_pkgs = pdb.getMatchingPackages("org.sw.demo.");
for (int pkgid = 0; auto &&ppath : all_pkgs) {
std::cerr << std::format("\r[{}/{}] {}\n", ++pkgid, all_pkgs.size(), ppath.toString());
LOG_INFO(logger, "[" << ++pkgid << "/" << all_pkgs.size() << "] " << ppath.toString());
auto versions = pdb.getVersionsForPackage(ppath);
if (versions.empty() || versions.rbegin()->isBranch()) {
continue;
Expand Down Expand Up @@ -170,7 +168,7 @@ void update_packages(SwClientContext &swctx) {
for (auto &&[p, vp] : new_pkgs) {
auto &&v = vp.first;
auto &&prefix = vp.second;
LOG_INFO(logger, std::format("sw uri --silent sw:upload {} {} {}", p.toString(), v.toString(), prefix));
LOG_INFO(logger, "sw uri --silent sw:upload " << p.toString() << " " << v.toString() << " " << prefix);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/sw/manager/database.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

#include <sw/support/filesystem.h>

#include <sqlpp11/sqlite3/connection.h>

#include <chrono>
#include <memory>
#include <optional>
#include <vector>

namespace sqlpp::sqlite3 { class connection; }

namespace sw
{

Expand Down

0 comments on commit ad5ab37

Please sign in to comment.