From c329bece61f6edcccc790d3c906a83be3a3e1d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 10 Oct 2011 21:00:54 +0000 Subject: [PATCH] Handle xz-compressed files. --- src/lib/Hydra/Controller/Build.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index fae03c53..7cdbbe98 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -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; }