X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=inline;f=daklib%2Fregexes.py;h=b734e9fa93ff81ce875e9db64845b19e3971e90f;hb=c603d6416b8850a4bb6f8778d13e168a445b07d2;hp=202aa57005045ac86d10073d02013d75505b1796;hpb=5401a178a83c927e507b746979aab7ee17ffae84;p=dak.git 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.:~+-]+)\))?$')