diff options
| author | dacctal <donotcontactmevia@email.invalid> | 2026-10-11 09:46:59 +0000 |
|---|---|---|
| committer | dacctal <donotcontactmevia@email.invalid> | 2026-10-11 09:46:59 +0000 |
| commit | aa7300924c9aba24ee555910a800cbba19249660 (patch) | |
| tree | f8006e9e766fcab3a287c7afcda95c09adc93c4a /src/recipes.c | |
| parent | 1481cf6423a30e13314e229915d9f3af190eaf37 (diff) | |
finally it installs things :D
Diffstat (limited to 'src/recipes.c')
| -rw-r--r-- | src/recipes.c | 5 |
1 files changed, 1 insertions, 4 deletions
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; |
