mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-19 19:17:01 -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
1
include/argparse
Symbolic link
1
include/argparse
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../modules/argparse/include/argparse
|
||||
|
|
@ -16,6 +16,7 @@ namespace gdpm::cache {
|
|||
string table_name = GDPM_PACKAGE_CACHE_TABLENAME;
|
||||
};
|
||||
|
||||
bool exists(const params& = params());
|
||||
error create_package_database(bool overwrite = false, const params& = params());
|
||||
error insert_package_info(const package::info_list& packages, const params& = params());
|
||||
result_t<package::info_list> get_package_info_by_id(const package::id_list& package_ids, const params& = params());
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
#include <variant>
|
||||
#include <future>
|
||||
#include <any>
|
||||
#include <algorithm>
|
||||
|
||||
namespace gdpm{
|
||||
class error;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace gdpm::version{
|
|||
int major = 0;
|
||||
int minor = 0;
|
||||
int patch = 0;
|
||||
string commit = "";
|
||||
string description = "";
|
||||
};
|
||||
|
||||
std::string to_string(const context& context);
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 02783b6782ebedbb2bebc2e6ceda738ee51c7df2
|
||||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit ef71abd9bc7254f7734fa84d5b1c336be2deb9f7
|
||||
Loading…
Add table
Add a link
Reference in a new issue