[Piuparts-commits] rev 473 - piatti/home/piupartsm/bin
Holger Levsen
holger at alioth.debian.org
Sat Aug 8 11:04:56 UTC 2009
Author: holger
Date: 2009-08-08 11:04:56 +0000 (Sat, 08 Aug 2009)
New Revision: 473
Modified:
piatti/home/piupartsm/bin/detect_well_known_errors
Log:
everybody loves parsing command output
Modified: piatti/home/piupartsm/bin/detect_well_known_errors
===================================================================
--- piatti/home/piupartsm/bin/detect_well_known_errors 2009-08-08 10:36:05 UTC (rev 472)
+++ piatti/home/piupartsm/bin/detect_well_known_errors 2009-08-08 11:04:56 UTC (rev 473)
@@ -56,7 +56,7 @@
echo "<ul>" >> $OUTPUT
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 "/" -f1)
+ 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 [ "$LATEST" != "pass" ] ; then
echo "<li><a href='/$SECTION/$LOG'>$LOG</a></li>" >> $OUTPUT
echo "$LOG" >> ${KNOWNLOGS[$NR]}
@@ -93,7 +93,7 @@
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 "/" -f1)
+ 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 [ "$LATEST" != "pass" ] ; then
echo "<li><a href='/$SECTION/$LOG'>$LOG</a></li>" >> $OUTPUT
fi
More information about the Piuparts-commits
mailing list