diff options
-rw-r--r-- | gbp/rpm/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/rpm/__init__.py b/gbp/rpm/__init__.py index f97ba497..24736946 100644 --- a/gbp/rpm/__init__.py +++ b/gbp/rpm/__init__.py @@ -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|\b))$' % self.rpmhdr[rpm.RPMTAG_NAME]) + tarball_re = re.compile(r'(?P<name>%s)?.*tar\.?(?P<comp>(bz2|gz|xz|\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|\b))$' % + tarball_re = re.compile(r'(?P<base>(?P<name>%s)?.*)\.tar\.?(?P<comp>(bz2|gz|xz|\b))$' % self.specinfo.packages[0].header[rpm.RPMTAG_NAME]) tarball = "" base = "" |