genorig: double digit version match

Fix patch name match accordingly to tarball match

Signed-off-by: maximilian attems <maks@debian.org>

svn path=/dists/trunk/linux/; revision=21297
This commit is contained in:
Maximilian Attems 2014-05-03 15:47:38 +00:00
parent 13c1700f3a
commit 0950a2a259
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class Main(object):
def upstream_patch(self, input_patch):
self.log("Patching source with %s\n" % input_patch)
match = re.match(r'(^|.*/)patch-\d+\.\d+\.\d+(-\S+?)?(\.(?P<extension>(bz2|gz|xz)))?$', input_patch)
match = re.match(r'(^|.*/)patch-\d+\.\d+(\.\d+)?(-\S+?)?(\.(?P<extension>(bz2|gz|xz)))?$', input_patch)
if not match:
raise RuntimeError("Can't identify name of patch")
cmdline = []