From c603d6416b8850a4bb6f8778d13e168a445b07d2 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 8 Jul 2012 13:53:58 -0600 Subject: [PATCH] daklib/regexes.py: re_field_source: fix matching version numbers --- daklib/regexes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.:~+-]+)\))?$') -- 2.39.5