rpms keys had extra spce
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 8 Sep 2008 13:47:07 +0000 (13:47 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 8 Sep 2008 13:47:07 +0000 (13:47 +0000)
PLC/Methods/GetPlcRelease.py

index d35df13..b7d238f 100644 (file)
@@ -8,7 +8,8 @@ comment_regexp = '\A\s*#.|\A\s*\Z|\Axxxxx'
 
 regexps = { 'build'   : '\A[bB]uild\s+(?P<key>[^:]+)\s*:\s*(?P<value>.*)\Z',
            'tags'    : '\A(?P<key>[^:]+)\s*:=\s*(?P<value>.*)\Z',
-            'rpms'    : '\A(?P<key>[^:]+)\s*::\s*(?P<value>.*)\Z',
+# spaces not part of key : ungreedy
+            'rpms'    : '\A(?P<key>[^:]+?)\s*::\s*(?P<value>.*)\Z',
 }
 
 class GetPlcRelease(Method):