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

Andreas Beckmann debian at abeckmann.de
Sun Apr 1 08:46:53 UTC 2012


The following commit has been merged in the piatti.git branch:
commit 6feca1e7c388bc11178746e741700e8baff9912a
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Mon Jan 30 01:56:00 2012 +0100

    add --recheck|--recheck-failed options
    
    Add optional arguments --recheck or --recheck-failed to
    detect_well_known_errors to allow full rescanning (e.g. after
    known problems have been added or updated).
    --recheck rescans pass, fail and bugged while
    --recheck-failed keeps pass and only rescans fail and bugged.
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/home/piupartsm/bin/detect_well_known_errors b/home/piupartsm/bin/detect_well_known_errors
index ffe9ede..4a483a1 100755
--- a/home/piupartsm/bin/detect_well_known_errors
+++ b/home/piupartsm/bin/detect_well_known_errors
@@ -17,6 +17,10 @@
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
+#
+# Usage: detect_well_known_errors [--recheck|--recheck-failed]
+#
+
 
 PIUPARTS_CONF=${PIUPARTS_CONF:-/etc/piuparts/piuparts.conf}
 [ -f "$PIUPARTS_CONF" ] || exit 0
@@ -63,6 +67,15 @@ do
 	cd $MASTER/$SECTION
 
 	#
+	# remove all *.kpr files if rechecking is requested
+	#
+	if [ "$1" = "--recheck" ]; then
+		rm -f pass/*.kpr bugged/*.kpr fail/*.kpr
+	elif [ "$1" = "--recheck-failed" ]; then
+		rm -f bugged/*.kpr fail/*.kpr
+	fi
+
+	#
 	# remove outdated *.kpr files
 	#
 	>$LOGS

-- 
piuparts git repository



More information about the Piuparts-commits mailing list