[Piuparts-commits] [SCM] piuparts git repository branch, piatti.git, updated. 4d2c7abb7c5a5a8ae3a0e51c77b65c605e0eb457

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


The following commit has been merged in the piatti.git 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

-- 
piuparts git repository



More information about the Piuparts-commits mailing list