tags 834238 + patch
thanks

Patch attached.

The spec for this field is here:

  https://wiki.debian.org/BuildProfileSpec

An_alternative diff could be:

  -    \(?(?P<version>[>=<]+\s*[^\)]+)?\)?
  +    \(?(?P<version>[>=<]+(?!!)\s*[^\)]+)?\)?

.. if there is a good reason why we make the parens optional, rather
than the entire version group. However, I could not find anything in
the git log so I am assuming its an oversight.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --git a/dhpython/debhelper.py b/dhpython/debhelper.py
index d54c2d8..6608d27 100644
--- a/dhpython/debhelper.py
+++ b/dhpython/debhelper.py
@@ -29,7 +29,7 @@ log = logging.getLogger('dhpython')
 parse_dep = re.compile('''[,\s]*
     (?P<name>[^ ]+)
     \s*
-    \(?(?P<version>[>=<]+\s*[^\)]+)?\)?
+    (?:\((?P<version>[>=<]+\s*[^\)]+)?\))?
     \s*
     (?P<arch>\[[^\]]+\])?
     ''', re.VERBOSE).match

Reply via email to