[Piuparts-commits] [SCM] piatti.debian.org configuration files branch, master, updated. 0.42-38-g4d2c7ab

Andreas Beckmann debian at abeckmann.de
Sun Jan 22 12:25:27 UTC 2012


The following commit has been merged in the master branch:
commit 26a8774225edee20876f8af023d3a3c7c83ab3c8
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Wed Jan 4 07:18:03 2012 +0100

    only produce useful output
    
    no output unless new/old bugged packages were detected
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/home/piupartsm/bin/report_newly_bugged_packages b/home/piupartsm/bin/report_newly_bugged_packages
index f1e4d9e..a44cb18 100755
--- a/home/piupartsm/bin/report_newly_bugged_packages
+++ b/home/piupartsm/bin/report_newly_bugged_packages
@@ -43,10 +43,18 @@ get_config_value PIUPARTS_PREFIX global prefix /org/piuparts.debian.org
 
 export PYTHONPATH=$PIUPARTS_PREFIX/lib/python2.6/dist-packages:$PIUPARTS_PREFIX/lib/python2.7/dist-packages
 
+OLDPWD=$(pwd)
+OUTPUT=$(mktemp)
 for SECTION in $SECTIONS ; do
 	if [ -d $MASTER/$SECTION ]; then
-		echo $SECTION
 		cd $MASTER/$SECTION
-		$PIUPARTS_PREFIX/share/piuparts/piuparts-analyze
+		$PIUPARTS_PREFIX/share/piuparts/piuparts-analyze 2>&1 > $OUTPUT
+		if [ -s $OUTPUT ]; then
+			echo $SECTION
+			cat $OUTPUT
+			echo
+		fi
+		cd "$OLDPWD"
 	fi
 done
+rm $OUTPUT

-- 
piatti.debian.org configuration files



More information about the Piuparts-commits mailing list