diff options
| author | dacctal <donotcontactmevia@email.invalid> | 2026-10-11 08:40:43 +0000 |
|---|---|---|
| committer | dacctal <donotcontactmevia@email.invalid> | 2026-10-11 08:40:43 +0000 |
| commit | 1481cf6423a30e13314e229915d9f3af190eaf37 (patch) | |
| tree | fc4c3443d131a0b38006b5427ddc7453be99c669 /src/recipes.c | |
| parent | 69f42f643e2fee18d69b24d20c3a0f5c7abdda67 (diff) | |
changed something(?) also fixed the license file
Diffstat (limited to 'src/recipes.c')
| -rw-r--r-- | src/recipes.c | 12 |
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)); |
