[Piuparts-commits] [SCM] piatti.debian.org configuration files branch, master, updated. 148332ef45997ba3aaf38cc2c9a28441083bad49

Andreas Beckmann debian at abeckmann.de
Fri Dec 23 10:24:12 UTC 2011


The following commit has been merged in the master branch:
commit baf3da4318c9946778d42b3b94f97fc7dd90fba8
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Mon Nov 28 02:57:45 2011 +0100

    don't hardcode the section name
    
    try to parse the distro instead
    TODO: add config option "auto-reschedule = no" to disable
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/home/piupartsm/bin/reschedule_oldest_logs b/home/piupartsm/bin/reschedule_oldest_logs
index 63b8eb9..fe217fb 100755
--- a/home/piupartsm/bin/reschedule_oldest_logs
+++ b/home/piupartsm/bin/reschedule_oldest_logs
@@ -38,8 +38,9 @@ FAIL_COUNT=25
 # reschedule 25 oldest fail log files, if they are older than 30 days
 #
 for SECTION in $SECTIONS ; do
+	DISTRO=$(sed -rn '\#\['"$SECTION"'\]#,/^\[/ {s/^distro\s*=\s*//p}' /etc/piuparts/piuparts.conf)
 	# only for sid and wheezy
-        if [ "$SECTION" = "sid" ] || [ "$SECTION" = "wheezy" ] ; then
+	if [ "$DISTRO" = "sid" ] || [ "$DISTRO" = "wheezy" ] || [ "$DISTRO" = "experimental" ]; then
 		echo $SECTION
 		cd $MASTER/$SECTION
 		# we ignore bugged here - ptyhon-bts is really the way to go

-- 
piatti.debian.org configuration files



More information about the Piuparts-commits mailing list