From: Michael Tremer Date: Sun, 5 Jan 2025 17:24:18 +0000 (+0000) Subject: build: Exclude *.py[co] and *.packlist from BUILDROOT check X-Git-Tag: 0.9.30~516 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f9e92d2d1e185843b10e8ad3c78291c0ea303d2;p=pakfire.git build: Exclude *.py[co] and *.packlist from BUILDROOT check Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/build.c b/src/pakfire/build.c index 393e1f1be..f617f0b2a 100644 --- a/src/pakfire/build.c +++ b/src/pakfire/build.c @@ -1574,6 +1574,17 @@ static int pakfire_build_check_buildroot( struct pakfire_filelist* broken = (struct pakfire_filelist*)data; int r; + // Skip Python byte-code files + if (pakfire_file_matches(file, "**.pyc")) + return 0; + + else if (pakfire_file_matches(file, "**.pyo")) + return 0; + + // Skip .packlist + else if (pakfire_file_matches(file, "**.packlist")) + return 0; + #warning We actually need to access the real buildroot here const char* buildroot = "/var/tmp/pakfire-buildroot";