Tidied repository with other small changes

This commit is contained in:
David Allen 2024-07-14 20:17:47 -06:00
parent c1ca0524f1
commit 5819c76289
No known key found for this signature in database
GPG key ID: 1D2A29322FBB6FCB
9 changed files with 10 additions and 5 deletions

View file

@ -17,6 +17,10 @@ namespace gdpm::cache{
return utils::replace_all(s, "'", "''");
}
bool exists(const params& params) {
return std::filesystem::exists(params.cache_path);
}
error create_package_database(
bool overwrite,
const params& params

View file

@ -58,7 +58,7 @@ namespace gdpm::package{
if(p_cache.empty()){
return log::error_rc(
ec::NOT_FOUND, /* TODO: change to PACKAGE_NOT_FOUND */
"package::install(): no packages found to install."
"package::install(): no package(s) found to install."
);
}

View file

@ -313,7 +313,7 @@ namespace gdpm::utils{
case 5: return s + " PB";
}
return std::to_string(size);
}
}
namespace json {
string from_array(