From: Michael Tremer Date: Fri, 16 Dec 2022 15:08:11 +0000 (+0000) Subject: build: Bring back pattern matching which was accidentially dropped X-Git-Tag: 0.9.29~412 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f97b22a8463a9987236a5bdde5b41512df1d1b5;p=pakfire.git build: Bring back pattern matching which was accidentially dropped Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/build.c b/src/libpakfire/build.c index 93b8bf58a..53c26d751 100644 --- a/src/libpakfire/build.c +++ b/src/libpakfire/build.c @@ -295,11 +295,16 @@ static int pakfire_build_send_filelist(struct pakfire* pakfire, void* data, int goto ERROR; } + // Skip files if we are performing pattern matching + if (ctx->pattern && !pakfire_file_matches(file, ctx->pattern)) + goto SKIP; + // Write path to stdin r = dprintf(fd, "%s\n", path); if (r < 0) return r; +SKIP: // Move on to the next file ctx->i++;