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

Holger Levsen holger at alioth.debian.org
Tue Aug 18 09:45:15 UTC 2009


Author: holger
Date: 2009-08-18 09:45:15 +0000 (Tue, 18 Aug 2009)
New Revision: 489

Modified:
   piatti/home/piupartsm/bin/detect_well_known_errors
Log:
yet more bugfixing

Modified: piatti/home/piupartsm/bin/detect_well_known_errors
===================================================================
--- piatti/home/piupartsm/bin/detect_well_known_errors	2009-08-18 08:10:47 UTC (rev 488)
+++ piatti/home/piupartsm/bin/detect_well_known_errors	2009-08-18 09:45:15 UTC (rev 489)
@@ -55,18 +55,19 @@
 			COUNT=0
 			for LOG in $(cat $LOGS|sort) ; do
 				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 "/" -f6)
+				LATEST=$(ls -tr1 --color=none $MASTER/$SECTION/fail/${PACKAGE}_* $MASTER/$SECTION/bugged/${PACKAGE}_* $MASTER/$SECTION/pass/${PACKAGE}_* 2>/dev/null|tail -1|cut -d "/" -f7)
 				if [ "${problem%_error.conf}_error.conf" == "$problem" ] ; then 
-					LATESTFAIL=$(ls -tr1 --color=none $MASTER/$SECTION/fail/${PACKAGE}* $MASTER/$SECTION/bugged/${PACKAGE}*  2>/dev/null|tail -1|cut -d "/" -f7-8)
+					LATESTFAIL=$(ls -tr1 --color=none $MASTER/$SECTION/fail/${PACKAGE}_* $MASTER/$SECTION/bugged/${PACKAGE}_*  2>/dev/null|tail -1|cut -d "/" -f7-8)
 					if [ "$LATEST" != "pass" ] && [ "$LATESTFAIL" == "$LOG" ] ; then 
 						echo "<li><a href='/$SECTION/$LOG'>$LOG</a></li>" >> $OUTPUT
 						echo "$LOG" >> ${KNOWNLOGS[$NR]}
 						let "COUNT += 1"
 					fi 
 				else
-					# LATESTFAIL is actually a misnomer now, because its LATESTSUCCESS
+					# this is an issue, not an error:
+					# so LATESTFAIL is actually a misnomer now, because its LATESTSUCCESS
 					# maybe it should be renamed to LATESTRELEVANT
-					LATESTFAIL=$(ls -tr1 --color=none $MASTER/$SECTION/pass/${PACKAGE}* 2>/dev/null|tail -1|cut -d "/" -f7-8)
+					LATESTFAIL=$(ls -tr1 --color=none $MASTER/$SECTION/pass/${PACKAGE}_* 2>/dev/null|tail -1|cut -d "/" -f7-8)
 					if [ "$LATEST" == "pass" ] && [ "$LATESTFAIL" == "$LOG" ] ; then 
 						echo "<li><a href='/$SECTION/$LOG'>$LOG</a></li>" >> $OUTPUT
 						echo "$LOG" >> ${KNOWNLOGS[$NR]}
@@ -105,8 +106,8 @@
 		echo "<ul>" >> $OUTPUT
 		for LOG in $(cat $UNKNOWNLOGS|sort) ; do
 			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 "/" -f6)
-			LATESTFAIL=$(ls -tr1 --color=none $MASTER/$SECTION/fail/${PACKAGE}* $MASTER/$SECTION/bugged/${PACKAGE}*  2>/dev/null|tail -1|cut -d "/" -f7-8)
+			LATEST=$(ls -tr1 --color=none $MASTER/$SECTION/fail/${PACKAGE}_* $MASTER/$SECTION/bugged/${PACKAGE}_* $MASTER/$SECTION/pass/${PACKAGE}_* 2>/dev/null|tail -1|cut -d "/" -f7)
+			LATESTFAIL=$(ls -tr1 --color=none $MASTER/$SECTION/fail/${PACKAGE}_* $MASTER/$SECTION/bugged/${PACKAGE}_*  2>/dev/null|tail -1|cut -d "/" -f7-8)
 			if [ "$LATEST" != "pass" ] && [ "$LATESTFAIL" == "$LOG" ] ; then 
 				echo "<li><a href='/$SECTION/$LOG'>$LOG</a></li>" >> $OUTPUT
 				let "COUNT += 1"




More information about the Piuparts-commits mailing list