aboutsummaryrefslogtreecommitdiff
path: root/src/recipes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/recipes.c')
-rw-r--r--src/recipes.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/recipes.c b/src/recipes.c
index b722cf8..bb29c4e 100644
--- a/src/recipes.c
+++ b/src/recipes.c
@@ -83,13 +83,11 @@ static bool is_pkg_installed(package_t *pkg) {
}
static bool pkg_fetch_sources(package_t *pkg) {
- //bool success = false;
if (!pkg_hook_fetch_sources(pkg)) {
log_error(GREEN "%.*s" COLOR_RESET " fetch failed",
str_fmt(&pkg->name));
return false;
}
- //success = pkg_write_status("f", pkg);
return true;
}
@@ -123,11 +121,11 @@ bool pkg_build(package_t *pkg) {
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');
+ 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));