aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/create_pkg.cc11
-rw-r--r--src/install_pkg.cc3
2 files changed, 7 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;
diff --git a/src/install_pkg.cc b/src/install_pkg.cc
index 2cf7193..0753606 100644
--- a/src/install_pkg.cc
+++ b/src/install_pkg.cc
@@ -13,13 +13,16 @@
void install_pkg(Pkg pkg) {
std::cout << print_pkgit << "fetching source..." << std::endl;
fetch_src(pkg);
+ std::cout << print_pkgit << "source fetched!" << std::endl;
std::cout << print_pkgit << "building..." << std::endl;
build(pkg);
+ std::cout << print_pkgit << "build complete!" << std::endl;
std::cout << print_pkgit << "installing..." << std::endl;
if (is_symlink_install) { link_install(pkg.src); }
else { copy_install(pkg.src); }
+ std::cout << print_pkgit << "installed!" << std::endl;
bool repo_exists = false;
for (auto repo : cached_repos) {