From: Michael Tremer Date: Thu, 3 Jun 2021 14:46:54 +0000 (+0000) Subject: build: Skip processing the filelist for empty packages X-Git-Tag: 0.9.28~1285^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=845563070859c19f5063e483c71bc2b9e2c930ae;p=pakfire.git build: Skip processing the filelist for empty packages Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/build.c b/src/libpakfire/build.c index f26912022..8e8adc53c 100644 --- a/src/libpakfire/build.c +++ b/src/libpakfire/build.c @@ -257,6 +257,10 @@ static int pakfire_build_package_add_files(Pakfire pakfire, PakfireParser makefi const size_t length = pakfire_filelist_size(filelist); DEBUG(pakfire, "%zu file(s) found\n", length); + // Nothing to do if the filelist is empty + if (!length) + goto ERROR; + // Find dependencies r = pakfire_build_find_dependencies(pakfire, pkg, filelist, buildroot); if (r) {