debian/bin/genorig.py: Accept more linux tarballs.

svn path=/dists/trunk/linux-kbuild-2.6/; revision=11293
This commit is contained in:
Bastian Blank 2008-05-05 17:27:45 +00:00
parent 131a1b3aa0
commit 32e3291306
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class Main(object):
def upstream_extract(self):
self.log("Extracting tarball %s\n" % self.input_tar)
match = re.match(r'(^|.*/)(?P<dir>linux-\d+\.\d+\.\d+(-\S+)?)\.tar(\.(?P<extension>(bz2|gz)))?$', self.input_tar)
match = re.match(r'(^|.*/)(?P<dir>linux-[\d.]+(-\S+)?)\.tar(\.(?P<extension>(bz2|gz)))?$', self.input_tar)
if not match:
raise RuntimeError("Can't identify name of tarball")
cmdline = ['tar -xf', self.input_tar, '-C', self.dir]