diff options
| author | dacctal <dacctal@symlinx.net> | 2026-05-02 09:56:50 +0000 |
|---|---|---|
| committer | dacctal <dacctal@symlinx.net> | 2026-05-02 09:56:50 +0000 |
| commit | 7322d59fef7958cc80604309804bc051243b9199 (patch) | |
| tree | 5b2226d33a7f66249b4d2af6e436177c72e4f93f /src/create_pkg.cc | |
| parent | 979a9571b7118822e67735654b36498fb8010c2a (diff) | |
install from local repos! :D
Diffstat (limited to 'src/create_pkg.cc')
| -rw-r--r-- | src/create_pkg.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/create_pkg.cc b/src/create_pkg.cc index 58e077f..4208208 100644 --- a/src/create_pkg.cc +++ b/src/create_pkg.cc @@ -11,8 +11,8 @@ Pkg create_pkg(std::string arg, const char* target) { Pkg pkg; pkg.target = target; pkg.ver = "HEAD"; + pkg.is_local = false; bool is_in_repos = false; - bool is_local = false; init_lua_state(); cache_repos(); @@ -27,7 +27,7 @@ Pkg create_pkg(std::string arg, const char* target) { pkg.url = ""; pkg.src = std::filesystem::current_path().string(); pkg.name = name_from_url(std::filesystem::current_path().string()); - is_local = true; + pkg.is_local = true; } else if (is_in_repos) { pkg.url = cached_repos[arg].source.value; pkg.name = arg; @@ -37,7 +37,7 @@ Pkg create_pkg(std::string arg, const char* target) { } cache_install_directories(); - if (!is_local) { + if (!pkg.is_local) { pkg.src = install_directories["src"] + "/" + pkg.name + "/" + pkg.ver; } |
