[88837] users/ryandesign/scripts/badpyports

ryandesign at macports.org ryandesign at macports.org
Fri Jan 13 00:58:01 PST 2012


Revision: 88837
          http://trac.macports.org/changeset/88837
Author:   ryandesign at macports.org
Date:     2012-01-13 00:58:00 -0800 (Fri, 13 Jan 2012)
Log Message:
-----------
badpyports: use modern regex to compute list of names

Modified Paths:
--------------
    users/ryandesign/scripts/badpyports

Modified: users/ryandesign/scripts/badpyports
===================================================================
--- users/ryandesign/scripts/badpyports	2012-01-13 08:56:22 UTC (rev 88836)
+++ users/ryandesign/scripts/badpyports	2012-01-13 08:58:00 UTC (rev 88837)
@@ -3,7 +3,7 @@
 # Finds ports that are using the unified python portgroup incorrectly.
 
 # Ports using the unified python portgroup.
-NAMES=$(port info --subports --index --line name:^py- | sed -n -e 's/^py[[:digit:]]*-//' -e 's/,.*$//p')
+NAMES=$(port info --subports --index --line name:^py- | sed -E -n -e 's/^py[[:digit:]]{2}-//' -e 's/,.*$//p')
 
 # Count them.
 TOTALPYPORTS=$(echo $NAMES | wc -w)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120113/e44c4225/attachment.html>


More information about the macports-changes mailing list