]> git.ipfire.org Git - pakfire.git/commitdiff
build: Strip the leading ! from excluded files
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 29 Nov 2022 17:03:23 +0000 (17:03 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 29 Nov 2022 17:03:23 +0000 (17:03 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/build.c

index 3d3f6ca94b3a9e81a01f1807d69dea023393bd55..5d8b181d48181dad754ead0c41e1a7123b7e3eed 100644 (file)
@@ -341,7 +341,7 @@ static int pakfire_build_package_add_files(struct pakfire_build* build,
        // Split into includes and excludes
        for (char** file = files; *file; file++) {
                if (**file == '!')
-                       r = append_to_array(&excludes, *file);
+                       r = append_to_array(&excludes, *file + 1);
                else
                        r = append_to_array(&includes, *file);
                if (r)