diff --git a/debian/bin/genorig.py b/debian/bin/genorig.py index 203ddfebe..7fa9e8de5 100755 --- a/debian/bin/genorig.py +++ b/debian/bin/genorig.py @@ -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(bz2|gz|xz)))?$', input_patch) + match = re.match(r'(^|.*/)patch-\d+\.\d+(\.\d+)?(-\S+?)?(\.(?P(bz2|gz|xz)))?$', input_patch) if not match: raise RuntimeError("Can't identify name of patch") cmdline = []