From aa7300924c9aba24ee555910a800cbba19249660 Mon Sep 17 00:00:00 2001 From: dacctal Date: Sun, 11 Oct 2026 09:46:59 +0000 Subject: finally it installs things :D --- src/recipes.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/recipes.c') diff --git a/src/recipes.c b/src/recipes.c index bb29c4e..246224e 100644 --- a/src/recipes.c +++ b/src/recipes.c @@ -64,7 +64,7 @@ static bool pkg_read_status(const char desired, package_t *pkg) { return false; } str status = file_read(&pkgit_status); - success = (str_find_char(&status, desired) == 0); + success = (str_find_char(&status, desired) != 0); str_free(&pkgit_status); str_free(&status); return success; @@ -122,11 +122,8 @@ bool pkg_install(package_t *pkg) { if (is_pkg_installed(pkg) && !flags.force) return true; try_pkg_fn(pkg_fetch_sources, pkg, "fetch", 'f'); if (!pkg_enter(pkg)) return false; - //if (!pkg_setup(pkg)) printf("setup failed"); try_pkg_fn(pkg_hook_setup, pkg, "setup", 's'); - //if (!pkg_build(pkg)) printf("build failed"); try_pkg_fn(pkg_hook_build, pkg, "build", 'b'); - printf("test\n"); try_pkg_fn(pkg_hook_install, pkg, "install", 'i'); log_success("'%.*s' installed", str_fmt(&pkg->name)); return true; -- cgit v1.2.3