[121212] branches/gsoc14-pip2port/pypi2port

gaurav at macports.org gaurav at macports.org
Fri Jun 20 03:08:48 PDT 2014


Revision: 121212
          https://trac.macports.org/changeset/121212
Author:   gaurav at macports.org
Date:     2014-06-20 03:08:48 -0700 (Fri, 20 Jun 2014)
Log Message:
-----------
Updated executable

Modified Paths:
--------------
    branches/gsoc14-pip2port/pypi2port

Modified: branches/gsoc14-pip2port/pypi2port
===================================================================
--- branches/gsoc14-pip2port/pypi2port	2014-06-20 10:07:59 UTC (rev 121211)
+++ branches/gsoc14-pip2port/pypi2port	2014-06-20 10:08:48 UTC (rev 121212)
@@ -222,9 +222,9 @@
             license = license.split('\n')[0]
             license = re.sub(r'[\[\]\{\}\;\:\$\t\"\'\`\=(--)]+', ' ', license)
             license = re.sub(r'\s(\s)+', ' ', license)
-            license = re.sub(r'([A-Z]*)([a-z]*)([\s]*)([0-9]\.*[0-9]*)',
+            license = re.sub(r'([A-Z]*)([a-z]*)([\s]+v*)([0-9]\.*[0-9]*)',
                              r'\1\2-\4', license)
-            license = re.sub(r'v-', '-', license)
+            license = re.sub(r'v(-*)([0-9])', r'\1\2', license)
             file.write('license             {0}\n'.format(license))
         else:
             file.write('license             {0}\n'.format(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140620/f4546e14/attachment.html>


More information about the macports-changes mailing list