Lines 77-82
COMPRESSOR_PROGRAM_OPTIONS = {"linux": "-I",
Link Here
|
77 |
"bsd": "--use-compress-program", |
77 |
"bsd": "--use-compress-program", |
78 |
} |
78 |
} |
79 |
|
79 |
|
|
|
80 |
DECOMPRESSOR_PROGRAM_OPTIONS = {"linux": "", |
81 |
"bsd": " -d", |
82 |
} |
83 |
|
84 |
LIST_XATTRS_OPTIONS = {"linux": "--xattrs", |
85 |
"bsd": "", |
86 |
} |
87 |
|
80 |
DEFAULT_TAR="linux-tar" |
88 |
DEFAULT_TAR="linux-tar" |
81 |
|
89 |
|
82 |
COMPRESS_DEFINITIONS = { |
90 |
COMPRESS_DEFINITIONS = { |
Lines 217-223
DECOMPRESS_DEFINITIONS = {
Link Here
|
217 |
"lbzip2": [ |
225 |
"lbzip2": [ |
218 |
"_common", "tar", |
226 |
"_common", "tar", |
219 |
[ |
227 |
[ |
220 |
"other_options", "%(comp_prog)s", "lbzip2", "-xpf", |
228 |
"other_options", "%(comp_prog)s", '"lbzip2%(decomp_opt)s"', "-xpf", |
221 |
"%(source)s", "-C", "%(destination)s" |
229 |
"%(source)s", "-C", "%(destination)s" |
222 |
], |
230 |
], |
223 |
"LBZIP2", ["tar.bz2", "bz2", "tbz2"], {"tar", "lbzip2"}, |
231 |
"LBZIP2", ["tar.bz2", "bz2", "tbz2"], {"tar", "lbzip2"}, |
Lines 226-232
DECOMPRESS_DEFINITIONS = {
Link Here
|
226 |
"_common", "tar", |
234 |
"_common", "tar", |
227 |
[ |
235 |
[ |
228 |
"--xattrs", "--xattrs-include=security.capability", |
236 |
"--xattrs", "--xattrs-include=security.capability", |
229 |
"--xattrs-include=user.pax.flags", "%(comp_prog)s", "lbzip2", |
237 |
"--xattrs-include=user.pax.flags", "%(comp_prog)s", '"lbzip2%(decomp_opt)s"', |
230 |
"-xpf", "%(source)s", "-C", "%(destination)s" |
238 |
"-xpf", "%(source)s", "-C", "%(destination)s" |
231 |
], |
239 |
], |
232 |
"LBZIP2", ["tar.bz2", "bz2", "tbz2"], {"tar", "lbzip2"}, |
240 |
"LBZIP2", ["tar.bz2", "bz2", "tbz2"], {"tar", "lbzip2"}, |
Lines 279-285
DECOMPRESS_DEFINITIONS = {
Link Here
|
279 |
"pixz": [ |
287 |
"pixz": [ |
280 |
"_common", "tar", |
288 |
"_common", "tar", |
281 |
[ |
289 |
[ |
282 |
"other_options", "%(comp_prog)s", "pixz", "-xpf", |
290 |
"other_options", "%(comp_prog)s", '"pixz%(decomp_opt)s"', "-xpf", |
283 |
"%(source)s", "-C", "%(destination)s" |
291 |
"%(source)s", "-C", "%(destination)s" |
284 |
], |
292 |
], |
285 |
"PIXZ", ["tar.xz", "xz"], {"tar", "pixz"}, |
293 |
"PIXZ", ["tar.xz", "xz"], {"tar", "pixz"}, |
Lines 288-294
DECOMPRESS_DEFINITIONS = {
Link Here
|
288 |
"_common", "tar", |
296 |
"_common", "tar", |
289 |
[ |
297 |
[ |
290 |
"--xattrs", "--xattrs-include=security.capability", |
298 |
"--xattrs", "--xattrs-include=security.capability", |
291 |
"--xattrs-include=user.pax.flags", "%(comp_prog)s", "pixz", "-xpf", |
299 |
"--xattrs-include=user.pax.flags", "%(comp_prog)s", '"pixz%(decomp_opt)s"', "-xpf", |
292 |
"%(source)s", "-C", "%(destination)s" |
300 |
"%(source)s", "-C", "%(destination)s" |
293 |
], |
301 |
], |
294 |
"PIXZ", ["tar.xz", "xz"], {"tar", "pixz"}, |
302 |
"PIXZ", ["tar.xz", "xz"], {"tar", "pixz"}, |
Lines 337-368
EXTENSION_SEPARATOR = '.'
Link Here
|
337 |
CONTENTS_DEFINITIONS = { |
345 |
CONTENTS_DEFINITIONS = { |
338 |
"tar": [ |
346 |
"tar": [ |
339 |
"_common", "tar", |
347 |
"_common", "tar", |
340 |
["--xattrs", "-tvf", "%(source)s"], |
348 |
["%(list_xattrs_opt)s", "-tvf", "%(source)s"], |
341 |
"TAR", [".tar"], {"tar"}, |
349 |
"TAR", [".tar"], {"tar"}, |
342 |
], |
350 |
], |
343 |
"gzip": [ |
351 |
"gzip": [ |
344 |
"_common", "tar", |
352 |
"_common", "tar", |
345 |
["--xattrs", "-tvzf", "%(source)s"], |
353 |
["%(list_xattrs_opt)s", "-tvzf", "%(source)s"], |
346 |
"GZIP", [".tgz", ".tar.gz", "gz"], {"tar"}, |
354 |
"GZIP", [".tgz", ".tar.gz", "gz"], {"tar"}, |
347 |
], |
355 |
], |
348 |
"lbzip2": [ |
356 |
"lbzip2": [ |
349 |
"_common", "tar", |
357 |
"_common", "tar", |
350 |
["--xattrs", "%(comp_prog)s", "lbzip2", "-tvf", "%(source)s"], |
358 |
["%(list_xattrs_opt)s", "%(comp_prog)s", "lbzip2%(decomp_opt)s", "-tvf", "%(source)s"], |
351 |
"LBZIP2", [".tbz2", "bz2", ".tar.bz2"], {"tar", "lbzip2"}, |
359 |
"LBZIP2", [".tbz2", "bz2", ".tar.bz2"], {"tar", "lbzip2"}, |
352 |
], |
360 |
], |
353 |
"bzip2": [ |
361 |
"bzip2": [ |
354 |
"_common", "tar", |
362 |
"_common", "tar", |
355 |
["--xattrs", "-tvf", "%(source)s"], |
363 |
["%(list_xattrs_opt)s", "-tvf", "%(source)s"], |
356 |
"BZIP2", [".tbz2", "bz2", ".tar.bz2"], {"tar", "bzip2"}, |
364 |
"BZIP2", [".tbz2", "bz2", ".tar.bz2"], {"tar", "bzip2"}, |
357 |
], |
365 |
], |
358 |
"xz": [ |
366 |
"xz": [ |
359 |
"_common", "tar", |
367 |
"_common", "tar", |
360 |
["--xattrs", "-tvf", "%(source)s"], |
368 |
["%(list_xattrs_opt)s", "-tvf", "%(source)s"], |
361 |
"XZ", ["tar.xz", "xz"], {"tar"}, |
369 |
"XZ", ["tar.xz", "xz"], {"tar"}, |
362 |
], |
370 |
], |
363 |
"pixz": [ |
371 |
"pixz": [ |
364 |
"_common", "tar", |
372 |
"_common", "tar", |
365 |
["--xattrs", "%(comp_prog)s", "pixz", "-tvf", "%(source)s"], |
373 |
["%(list_xattrs_opt)s", "%(comp_prog)s", "pixz%(decomp_opt)s", "-tvf", "%(source)s"], |
366 |
"PIXZ", ["tar.xz", "xz"], {"tar", "pixz"}, |
374 |
"PIXZ", ["tar.xz", "xz"], {"tar", "pixz"}, |
367 |
], |
375 |
], |
368 |
"isoinfo_l": [ |
376 |
"isoinfo_l": [ |