more flexible on branch names
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 24 Apr 2008 04:30:00 +0000 (04:30 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 24 Apr 2008 04:30:00 +0000 (04:30 +0000)
module-tools.py

index a380919..f00666a 100755 (executable)
@@ -150,7 +150,7 @@ class Module:
 
 
     # for parsing module spec name:branch
-    matcher_branch_spec=re.compile("\A(?P<name>[\w-]+):(?P<branch>[\w\.]+)\Z")
+    matcher_branch_spec=re.compile("\A(?P<name>[\w-]+):(?P<branch>[\w\.-]+)\Z")
     matcher_rpm_define=re.compile("%(define|global)\s+(\S+)\s+(\S*)\s*")
 
     def __init__ (self,module_spec,options):