Handle xz-compressed files.

This commit is contained in:
Ludovic Courtès 2011-10-10 21:00:54 +00:00
parent 5f93e6437f
commit c329bece61

View file

@ -256,7 +256,7 @@ sub contents : Chained('build') PathPart Args(1) {
error($c, "`dpkg-deb' error: $?") if $? != 0;
}
elsif ($path =~ /\.tar(\.gz|\.bz2|\.lzma)?$/ ) {
elsif ($path =~ /\.tar(\.gz|\.bz2|\.xz|\.lzma)?$/ ) {
$res = `tar tvfa "$path"`;
error($c, "`tar' error: $?") if $? != 0;
}