[Piuparts-commits] rev 466 - piatti/home/piupartsm/bin

Holger Levsen holger at alioth.debian.org
Sat Aug 8 09:17:21 UTC 2009


Author: holger
Date: 2009-08-08 09:17:21 +0000 (Sat, 08 Aug 2009)
New Revision: 466

Modified:
   piatti/home/piupartsm/bin/detect_well_known_errors
Log:
be less verbose and buggy

Modified: piatti/home/piupartsm/bin/detect_well_known_errors
===================================================================
--- piatti/home/piupartsm/bin/detect_well_known_errors	2009-08-08 09:12:19 UTC (rev 465)
+++ piatti/home/piupartsm/bin/detect_well_known_errors	2009-08-08 09:17:21 UTC (rev 466)
@@ -55,8 +55,8 @@
 			echo "<p>Affected packages in $SECTION: $COUNT</p>" >> $OUTPUT
 			echo "<ul>" >> $OUTPUT
 			for LOG in $(cat $LOGS) ; do
-				PACKAGE=$(echo $LOG | cut -d "_" -f1)
-				LATEST=$(ls -tr1 --color=none $MASTER/$SECTION/fail/${PACKAGE}* $MASTER/$SECTION/bugged/${PACKAGE}* $MASTER/$SECTION/pass/${PACKAGE}*|tail -1|cut -d "/" -f2)
+				PACKAGE=$(echo $LOG | cut -d "_" -f1|cut -d "/" -f2)
+				LATEST=$(ls -tr1 --color=none $MASTER/$SECTION/fail/${PACKAGE}* $MASTER/$SECTION/bugged/${PACKAGE}* $MASTER/$SECTION/pass/${PACKAGE}* 2>/dev/null|tail -1|cut -d "/" -f2)
 				if [ "$LATEST" != "pass" ] ; then 
 					echo "<li><a href='/$SECTION/$LOG'>$LOG</a></li>" >> $OUTPUT
 					echo "$LOG" >> ${KNOWNLOGS[$NR]}




More information about the Piuparts-commits mailing list