From: Ansgar Burchardt Date: Sun, 8 Jul 2012 19:53:58 +0000 (-0600) Subject: daklib/regexes.py: re_field_source: fix matching version numbers X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c603d6416b8850a4bb6f8778d13e168a445b07d2;p=dak.git daklib/regexes.py: re_field_source: fix matching version numbers --- diff --git a/daklib/regexes.py b/daklib/regexes.py index 202aa570..b734e9fa 100755 --- a/daklib/regexes.py +++ b/daklib/regexes.py @@ -180,4 +180,4 @@ re_field_version_upstream = re.compile(r'^(?:[0-9]+:)?(?P.*)-[^-]*$') # Match source field # Groups: package, version -re_field_source = re.compile(r'^(?P[a-z0-9][a-z0-9.+-]+)(:?\s*\((?P[A-Za-z0-9.:~+-])\))?') +re_field_source = re.compile(r'^(?P[a-z0-9][a-z0-9.+-]+)(?:\s*\((?P[A-Za-z0-9.:~+-]+)\))?$')