]> git.ipfire.org Git - pakfire.git/commitdiff
packager: Store any extended attributes in SCHILY header
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 20 Aug 2022 16:09:36 +0000 (16:09 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 20 Aug 2022 16:09:36 +0000 (16:09 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/packager.c

index e18bf54af218c84684fe768d7982d3ae5fa4ee7b..76c12feca5aa6210dd3a72432d6239fbbefa6439 100644 (file)
@@ -154,6 +154,14 @@ static int pakfire_packager_create_payload(struct pakfire_packager* p) {
                return r;
        }
 
+       // Store any extended attributes in the SCHILY headers
+       r = archive_write_set_format_option(p->payload, "pax", "xattrheader", "SCHILY");
+       if (r) {
+               ERROR(p->pakfire, "Could not set xattrheader option: %s\n",
+                       archive_error_string(p->payload));
+               return r;
+       }
+
        // Add filters to compress the payload
        if (compress) {
                // Enable Zstd