]> git.ipfire.org Git - people/ric9/pakfire.git/commitdiff
build: Exclude *.py[co] and *.packlist from BUILDROOT check
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 5 Jan 2025 17:24:18 +0000 (17:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 5 Jan 2025 17:24:18 +0000 (17:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/build.c

index 393e1f1bebdc1fcfac97b0999a93d7445fe47b8a..f617f0b2a9763770f43cb4c8a936c10fc4aee765 100644 (file)
@@ -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";