mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
Tidied repository with other small changes
This commit is contained in:
parent
c1ca0524f1
commit
5819c76289
9 changed files with 10 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -313,7 +313,7 @@ namespace gdpm::utils{
|
|||
case 5: return s + " PB";
|
||||
}
|
||||
return std::to_string(size);
|
||||
}
|
||||
}
|
||||
|
||||
namespace json {
|
||||
string from_array(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue