From 831dacd5cc8073a3053f09cac7bbf715eb4e0b9d Mon Sep 17 00:00:00 2001 From: forever2k38 Date: Wed, 21 Oct 2026 19:52:27 +0200 Subject: make sources optional, build with lua5.5, dont hardcode package name for use flags --- src/build.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/build.c') diff --git a/src/build.c b/src/build.c index c572242..44767c4 100644 --- a/src/build.c +++ b/src/build.c @@ -39,10 +39,12 @@ int pow_package_build(pow_package *pkg) { pow_log_info("building package %s", pkg->name); - if (pow_download_source(pkg->sources[0], tmp_path)) { - pow_log_error("failed to get sources"); + for (size_t i = 0; i < pkg->source_count; i++) { + if (pow_download_source(pkg->sources[0], tmp_path)) { + pow_log_error("failed to get sources"); - return 1; + return 1; + } } lua_getfield(pkg->L, -1, "build"); -- cgit v1.3