[Piuparts-commits] [SCM] piatti.debian.org configuration files branch, develop, updated. 0.43-15-g9510d05
Andreas Beckmann
debian at abeckmann.de
Tue Jan 31 07:59:39 UTC 2012
The following commit has been merged in the develop 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
--
piatti.debian.org configuration files
More information about the Piuparts-commits
mailing list