[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] Support to extract upstream xz-compressed tarballs



Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
---
 debian/bin/genorig.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/bin/genorig.py b/debian/bin/genorig.py
index 30a2e75..856d5eb 100755
--- a/debian/bin/genorig.py
+++ b/debian/bin/genorig.py
@@ -102,7 +102,7 @@ class Main(object):
 
     def upstream_extract(self, input_tar):
         self.log("Extracting tarball %s\n" % input_tar)
-        match = re.match(r'(^|.*/)(?P<dir>linux-\d+\.\d+(\.\d+)?(-\S+)?)\.tar(\.(?P<extension>(bz2|gz)))?$', input_tar)
+        match = re.match(r'(^|.*/)(?P<dir>linux-\d+\.\d+(\.\d+)?(-\S+)?)\.tar(\.(?P<extension>(bz2|gz|xz)))?$', input_tar)
         if not match:
             raise RuntimeError("Can't identify name of tarball")
 
-- 
1.7.10.4


Reply to: