[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.44-647-gaf1a481

Andreas Beckmann debian at abeckmann.de
Sun Jun 3 07:10:52 UTC 2012


The following commit has been merged in the develop branch:
commit 4bb639814ea299eaae97394f8866db04b066f53f
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Sat Jun 2 13:19:19 2012 +0200

    detect_well_known_errors: use the .bug files
    
    Add links to the BTS in the generated .tpl files.
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/debian/changelog b/debian/changelog
index 248e073..c6783be 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -79,6 +79,7 @@ piuparts (0.45) UNRELEASED; urgency=low
     - Exclude obsolete states from generated report.
     - Establish packagesdb working directory in Section.
     - Handle logs in /affected/ directories.
+    - detect_well_known_errors: Add bug links if bugs are known.
   * piuparts-analyze.py:
     - Don't report further bugs/versions if we found a match.
     - Classify logs with bugs filed into /bugged/ or /affected/.
diff --git a/home/piupartsm/bin/detect_well_known_errors b/home/piupartsm/bin/detect_well_known_errors
index fe04635..f2728d6 100755
--- a/home/piupartsm/bin/detect_well_known_errors
+++ b/home/piupartsm/bin/detect_well_known_errors
@@ -155,7 +155,11 @@ do
 				if [ "${problem%_error.conf}_error.conf" = "$problem" ] ; then 
 					LATESTFAIL=$(grep -v ^pass/ $LIST_PKG | tail -n 1)
 					if [ "$LATEST" != "pass" ] && [ "$LATESTFAIL" = "$LOG" ] ; then 
-						echo "<li><a href='/$SECTION/$LOG'>$LOG</a> (<a href=\"http://bugs.debian.org/$PACKAGE?dist=unstable\" target=\"_blank\">BTS</a>)</li>" >> $OUTPUT
+						echo "<li><a href='/$SECTION/$LOG'>$LOG</a>" >> $OUTPUT
+						echo "    (<a href=\"http://bugs.debian.org/$PACKAGE?dist=unstable\" target=\"_blank\">BTS</a>)" >> $OUTPUT
+						BUG=${LOG%.log}.bug
+						test ! -s "$BUG" || cat "$BUG" >> $OUTPUT
+						echo "</li>" >> $OUTPUT
 						echo "$LOG" >> $KNOWNLOGS
 						COUNT=$((COUNT+1))
 					fi

-- 
piuparts git repository



More information about the Piuparts-commits mailing list