diff options
Diffstat (limited to 'src/build.c')
| -rw-r--r-- | src/build.c | 8 |
1 files changed, 5 insertions, 3 deletions
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"); |
