[Piuparts-commits] rev 472 - piatti/home/piupartsm/bin trunk
Holger Levsen
holger at alioth.debian.org
Sat Aug 8 10:36:05 UTC 2009
Author: holger
Date: 2009-08-08 10:36:05 +0000 (Sat, 08 Aug 2009)
New Revision: 472
Modified:
piatti/home/piupartsm/bin/detect_well_known_errors
trunk/piuparts-report.py
Log:
fix a typo and only display the last failed log for the unclassified errors
Modified: piatti/home/piupartsm/bin/detect_well_known_errors
===================================================================
--- piatti/home/piupartsm/bin/detect_well_known_errors 2009-08-08 10:17:07 UTC (rev 471)
+++ piatti/home/piupartsm/bin/detect_well_known_errors 2009-08-08 10:36:05 UTC (rev 472)
@@ -92,7 +92,11 @@
echo "<p>Affected packages in $SECTION: $COUNT</p>" >> $OUTPUT
echo "<ul>" >> $OUTPUT
for LOG in $(cat $UNKNOWNLOGS|sort) ; do
- echo "<li><a href='/$SECTION/$LOG'>$LOG</a></li>" >> $OUTPUT
+ 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)
+ if [ "$LATEST" != "pass" ] ; then
+ echo "<li><a href='/$SECTION/$LOG'>$LOG</a></li>" >> $OUTPUT
+ fi
done
echo "</ul></td></tr></table>" >> $OUTPUT
fi
Modified: trunk/piuparts-report.py
===================================================================
--- trunk/piuparts-report.py 2009-08-08 10:17:07 UTC (rev 471)
+++ trunk/piuparts-report.py 2009-08-08 10:36:05 UTC (rev 472)
@@ -344,7 +344,7 @@
"owned_files_by_many_packages_error.tpl": "due to owned files by many packages",
"processes_running_error.tpl": "due to leaving processes running behind",
"unowned_files_after_purge_error.tpl": "due to unowned files after purge",
- "conffile_prompt_error.conf.tpl": "due to prompting due to modified conffiles",
+ "conffile_prompt_error.tpl": "due to prompting due to modified conffiles",
"unknown_failures.tpl": "unclassified failures",
"command_not_found_issue.tpl": "but logfile contains 'command not found'",
}
More information about the Piuparts-commits
mailing list