[146382] users/mojca/scripts/remove-perl-branches.py

mojca at macports.org mojca at macports.org
Sun Mar 6 12:03:09 PST 2016


Revision: 146382
          https://trac.macports.org/changeset/146382
Author:   mojca at macports.org
Date:     2016-03-06 12:03:09 -0800 (Sun, 06 Mar 2016)
Log Message:
-----------
users/mojca: updated script for rmoval of perl branches

Modified Paths:
--------------
    users/mojca/scripts/remove-perl-branches.py

Modified: users/mojca/scripts/remove-perl-branches.py
===================================================================
--- users/mojca/scripts/remove-perl-branches.py	2016-03-06 19:56:23 UTC (rev 146381)
+++ users/mojca/scripts/remove-perl-branches.py	2016-03-06 20:03:09 UTC (rev 146382)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
 
 import glob
 import re
@@ -17,8 +17,8 @@
         match = re.search(r'^perl5.branches\s+(.*)', line)
         if match:
             versions_old = match.group(1)
-            # remove 5.8 5.10 5.12 5.14
-            versions_new = re.sub(r'5[.](8|10|12|14)\s+', '', versions_old)
+            # remove 5.16 5.28 5.20
+            versions_new = re.sub(r'5[.](16|18|20)\s+', '', versions_old)
             # new version string (properly formatted for 20 spaces)
             line_new     = "perl5.branches      {}".format(versions_new)
             # just debug output
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160306/b7e2e711/attachment.html>


More information about the macports-changes mailing list