[88840] users/ryandesign/scripts/badpyports

ryandesign at macports.org ryandesign at macports.org
Fri Jan 13 01:08:30 PST 2012


Revision: 88840
          http://trac.macports.org/changeset/88840
Author:   ryandesign at macports.org
Date:     2012-01-13 01:08:30 -0800 (Fri, 13 Jan 2012)
Log Message:
-----------
badpyports: show who maintains the problem ports

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

Modified: users/ryandesign/scripts/badpyports
===================================================================
--- users/ryandesign/scripts/badpyports	2012-01-13 09:04:13 UTC (rev 88839)
+++ users/ryandesign/scripts/badpyports	2012-01-13 09:08:30 UTC (rev 88840)
@@ -8,6 +8,7 @@
 # Count them.
 TOTALPYPORTS=$(echo $NAMES | wc -w)
 
+PROBLEMPORTS=""
 DEPENDENCYPROBLEMS=0
 DEFAULTVERSIONPROBLEMS=0
 for NAME in $NAMES; do
@@ -21,12 +22,14 @@
     if [ -z "$DEFAULTVERSION" ]; then
         printf "%s declares dependencies even in the stub port\n" $STUBPORT
         DEPENDENCYPROBLEMS=$(($DEPENDENCYPROBLEMS + 1))
+        PROBLEMPORTS="$PROBLEMPORTS $STUBPORT"
     else
         # Get the file of the default subport. If the default is set incorrectly, this will be empty.
         FILE=$(port file py$DEFAULTVERSION-$NAME 2>/dev/null)
         if [ -z "$FILE" ]; then
             printf "%s declares default python version %s but does not offer python version %s\n" $STUBPORT $DEFAULTVERSION $DEFAULTVERSION
             DEFAULTVERSIONPROBLEMS=$(($DEFAULTVERSIONPROBLEMS + 1))
+            PROBLEMPORTS="$PROBLEMPORTS $STUBPORT"
         fi
     fi
 done
@@ -47,3 +50,10 @@
     printf "%d of these have default python version problems. python.default_version needs to be\n" $DEFAULTVERSIONPROBLEMS
     echo "set to one of the values you set in python.versions."
 fi
+
+if [ $TOTALPROBLEMPORTS -gt 0 ]; then
+    echo
+    echo "The maintainers of these ports are:"
+    echo
+    port info --maintainers --index --line $PROBLEMPORTS | tr ',' '\n' | sort -u
+fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120113/abe58ba0/attachment.html>


More information about the macports-changes mailing list