From: Michael Tremer Date: Sat, 20 Aug 2022 16:09:36 +0000 (+0000) Subject: packager: Store any extended attributes in SCHILY header X-Git-Tag: 0.9.28~411 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83aa715da6b7122eb007485e25ed204f0525fdab;p=pakfire.git packager: Store any extended attributes in SCHILY header Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/packager.c b/src/libpakfire/packager.c index e18bf54af..76c12feca 100644 --- a/src/libpakfire/packager.c +++ b/src/libpakfire/packager.c @@ -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