diff options
| author | dacctal <dacctal@symlinx.net> | 2026-05-02 09:02:46 +0000 |
|---|---|---|
| committer | dacctal <dacctal@symlinx.net> | 2026-05-02 09:02:46 +0000 |
| commit | 47652687bcf1e02eb5503a6223b16238d4d6d161 (patch) | |
| tree | 4d2dc6496353f8954a73822769bd67d90a474c9c /src/create_pkg.cc | |
| parent | 44eb727dc537403be092326639a5b7c6d7182146 (diff) | |
fixed like half of everything idk, you can install stuff now
Diffstat (limited to 'src/create_pkg.cc')
| -rw-r--r-- | src/create_pkg.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/create_pkg.cc b/src/create_pkg.cc index 1792d24..4729923 100644 --- a/src/create_pkg.cc +++ b/src/create_pkg.cc @@ -23,14 +23,11 @@ Pkg create_pkg(std::string arg, const char* target) { if (arg.rfind("http", 0) == 0) { pkg.url = arg; pkg.name = name_from_url(arg); - } else if (std::filesystem::exists(arg) || arg == ".") { + } else if (arg == ".") { + std::cout << "this pkg is local" << std::endl; pkg.url = ""; - if (std::filesystem::exists(arg)) { - pkg.src = arg; - } else { - pkg.src = std::filesystem::current_path().string(); - } - pkg.name = name_from_url(arg); + pkg.src = std::filesystem::current_path().string(); + pkg.name = name_from_url(std::filesystem::current_path().string()); is_local = true; } else if (is_in_repos) { pkg.url = cached_repos[arg].source.value; |
