mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-19 19:17:01 -07:00
Fixed installing issue with no set remote
- Added default remote repo - Fixed adding and removing remote repos
This commit is contained in:
parent
8b1f1374d8
commit
996c47466e
6 changed files with 46 additions and 29 deletions
|
|
@ -23,8 +23,10 @@ namespace gdpm::constants::error{
|
|||
DIRECTORY_EXISTS,
|
||||
DIRECTORY_NOT_FOULD,
|
||||
HOST_UNREACHABLE,
|
||||
REMOTE_NOT_FOUND,
|
||||
EMPTY_RESPONSE,
|
||||
INVALID_ARGS,
|
||||
INVALID_ARG_COUNT,
|
||||
INVALID_CONFIG,
|
||||
INVALID_KEY,
|
||||
HTTP_RESPONSE_ERROR,
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ namespace gdpm::package {
|
|||
bool enable_cache = true;
|
||||
bool enable_sync = true;
|
||||
bool skip_prompt = false;
|
||||
string remote_source = "";
|
||||
string remote_source = "origin";
|
||||
install_method_e install_method = GLOBAL_LINK_LOCAL;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace gdpm::remote{
|
|||
GDPM_DLL_EXPORT error _handle_remote(config::context& config, const args_t& args, const opts_t& opts);
|
||||
GDPM_DLL_EXPORT void set_repositories(config::context& context, const repository_map& repos);
|
||||
GDPM_DLL_EXPORT void add_repositories(config::context& context, const repository_map& repos);
|
||||
GDPM_DLL_EXPORT void remove_respositories(config::context& context, const repo_names& name);
|
||||
GDPM_DLL_EXPORT void remove_respositories(config::context& context, const repo_names& names);
|
||||
GDPM_DLL_EXPORT void move_repository(config::context& context, int old_position, int new_position);
|
||||
GDPM_DLL_EXPORT void print_repositories(const config::context& context);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue