From 1481cf6423a30e13314e229915d9f3af190eaf37 Mon Sep 17 00:00:00 2001 From: dacctal Date: Sun, 11 Oct 2026 08:40:43 +0000 Subject: changed something(?) also fixed the license file --- LICENSE | 10 +--------- src/files.c | 2 +- src/hooks.c | 1 + src/recipes.c | 12 +++++------- 4 files changed, 8 insertions(+), 17 deletions(-) diff --git a/LICENSE b/LICENSE index 66df81a..5e986a8 100644 --- a/LICENSE +++ b/LICENSE @@ -92,7 +92,7 @@ If you develop a new program, and you want it to be of the greatest possible use To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. one line to give the program's name and an idea of what it does. -Copyright (C) yyyy name of author +Copyright (C) 2026 dacctal This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -122,12 +122,4 @@ The hypothetical commands `show w' and `show c' should show the appropriate part You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: -Yoyodyne, Inc., hereby disclaims all copyright -interest in the program `Gnomovision' -(which makes passes at compilers) written -by James Hacker. - -signature of Moe Ghoul, 1 April 1989 -Moe Ghoul, President of Vice - This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. diff --git a/src/files.c b/src/files.c index 67a327a..70c45ea 100644 --- a/src/files.c +++ b/src/files.c @@ -17,7 +17,7 @@ */ -#define _XOPEN_SOURCE 500 +//#define _XOPEN_SOURCE 500 #include #include #include diff --git a/src/hooks.c b/src/hooks.c index 20923b7..83fac15 100644 --- a/src/hooks.c +++ b/src/hooks.c @@ -100,6 +100,7 @@ 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 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)); -- cgit v1.2.3