diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/hooks.c | 1 | ||||
| -rw-r--r-- | src/recipes.c | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/hooks.c b/src/hooks.c index 83fac15..20923b7 100644 --- a/src/hooks.c +++ b/src/hooks.c @@ -100,7 +100,6 @@ str pkg_get_latest_version(package_t *pkg) { } bool pkg_hook_recipe(char *recipe, package_t *pkg) { - printf("hello there\n"); lua_get_field_type("pkgs", table, &config.init_path, 1); lua_get_field_type(pkg->name.data, table, &config.init_path, 2); lua_get_field_type("recipe", table, &config.init_path, 3); 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; |
