[asterisk-commits] russell: testsuite/asterisk/trunk r85 - /asterisk/trunk/asteriskversion.py

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 17 15:41:59 CDT 2010


Author: russell
Date: Wed Mar 17 15:41:56 2010
New Revision: 85

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=85
Log:
Be slightly more correct for the part that is just a group, not a capture

Modified:
    asterisk/trunk/asteriskversion.py

Modified: asterisk/trunk/asteriskversion.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asteriskversion.py?view=diff&rev=85&r1=84&r2=85
==============================================================================
--- asterisk/trunk/asteriskversion.py (original)
+++ asterisk/trunk/asteriskversion.py Wed Mar 17 15:41:56 2010
@@ -38,7 +38,7 @@
     def __parse_svn_version(self):
         self.svn = True
         match = re.search(
-                "SVN-(?P<branch>.*)-r(?P<revision>\d+M?)(:?\-(?P<parent>.*))?",
+                "SVN-(?P<branch>.*)-r(?P<revision>\d+M?)(?:\-(?P<parent>.*))?",
                 self.version_str
         )
         if match is not None:




More information about the asterisk-commits mailing list