From 44eb727dc537403be092326639a5b7c6d7182146 Mon Sep 17 00:00:00 2001 From: dacctal Date: Sat, 2 May 2026 08:38:13 +0000 Subject: fixed like half of everything idk, you can install stuff now --- src/install_pkg.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/install_pkg.cc') diff --git a/src/install_pkg.cc b/src/install_pkg.cc index 3f0bd75..2cf7193 100644 --- a/src/install_pkg.cc +++ b/src/install_pkg.cc @@ -6,6 +6,8 @@ #include "copy_install.hh" #include "install_pkg.hh" #include "link_install.hh" +#include "lua_state.hh" +#include "name_from_url.hh" #include "vars.hh" void install_pkg(Pkg pkg) { @@ -13,15 +15,15 @@ void install_pkg(Pkg pkg) { fetch_src(pkg); std::cout << print_pkgit << "building..." << std::endl; - build(pkg.src.c_str()); + build(pkg); std::cout << print_pkgit << "installing..." << std::endl; if (is_symlink_install) { link_install(pkg.src); } else { copy_install(pkg.src); } bool repo_exists = false; - for (auto repo : repos) { - if (repo.first == pkg.name) { + for (auto repo : cached_repos) { + if (name_from_url(repo.second.source.value) == pkg.name) { repo_exists = true; } } -- cgit v1.2.3