rpm: Added .lzma to the list of supported compression types for original tarballs
authorEd Bartosh <eduard.bartosh@intel.com>
Wed, 9 May 2012 14:18:10 +0000 (17:18 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Wed, 9 May 2012 14:22:52 +0000 (17:22 +0300)
Change-Id: Ia5694aae75f8d2366f624ec0ab8eb1e2742590a3
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
gbp/rpm/__init__.py

index 247369462b6d7a520b5643cd1a3ac3ca3de7538c..e68d7d50e7127749ee24365647dee4dc67387d7a 100644 (file)
@@ -148,7 +148,7 @@ class SrcRpmFile(object):
         Try to guess the name of the primary upstream/source tarball
         returns a tuple with tarball filename and compression suffix
         """
-        tarball_re = re.compile(r'(?P<name>%s)?.*tar\.?(?P<comp>(bz2|gz|xz|\b))$' % self.rpmhdr[rpm.RPMTAG_NAME])
+        tarball_re = re.compile(r'(?P<name>%s)?.*tar\.?(?P<comp>(bz2|gz|xz|lzma|\b))$' % self.rpmhdr[rpm.RPMTAG_NAME])
         tarball = ""
         comp = ""
 
@@ -416,7 +416,7 @@ class SpecFile(object):
         Try to guess the name of the primary upstream/source tarball
         returns a tuple with tarball filename and compression suffix
         """
-        tarball_re = re.compile(r'(?P<base>(?P<name>%s)?.*)\.tar\.?(?P<comp>(bz2|gz|xz|\b))$' %
+        tarball_re = re.compile(r'(?P<base>(?P<name>%s)?.*)\.tar\.?(?P<comp>(bz2|gz|xz|lzma|\b))$' %
                                 self.specinfo.packages[0].header[rpm.RPMTAG_NAME])
         tarball = ""
         base = ""