Change-Id: I36ff686e71a6033c9db3b35514429987bf0f68a5
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 = ""
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 = ""