]> git.decadent.org.uk Git - dak.git/commitdiff
cron.buildd
authorJoerg Jaspert <joerg@debian.org>
Mon, 13 Dec 2010 22:49:05 +0000 (23:49 +0100)
committerJoerg Jaspert <joerg@debian.org>
Mon, 13 Dec 2010 22:49:05 +0000 (23:49 +0100)
whitespace fun

Signed-off-by: Joerg Jaspert <joerg@debian.org>
config/debian-security/cron.buildd

index e52cbb4a8c4d084d499761b370052b44cdbd5926..7bd0e7e602333d474e61b54095265ba726d7eae5 100755 (executable)
@@ -11,12 +11,12 @@ SSH_SOCKET=~/.ssh/buildd.debian.org.socket
 DISTS=$(dak admin s list)
 
 if [ -e $ftpdir/Archive_Maintenance_In_Progress ]; then
-       exit 0
+    exit 0
 fi
 
 for dist in $DISTS; do
-       eval SOURCES_$dist=`stat -c "%Y" $base/buildd/$dist/Sources.gz`
-       eval PACKAGES_$dist=`stat -c "%Y" $base/buildd/$dist/Packages.gz`
+    eval SOURCES_$dist=`stat -c "%Y" $base/buildd/$dist/Sources.gz`
+    eval PACKAGES_$dist=`stat -c "%Y" $base/buildd/$dist/Packages.gz`
 done
 
 cd $configdir
@@ -35,39 +35,39 @@ dists=
 
 
 for dist in $DISTS; do
-       eval NEW_SOURCES_$dist=`stat -c "%Y" $base/buildd/$dist/Sources.gz`
-       eval NEW_PACKAGES_$dist=`stat -c "%Y" $base/buildd/$dist/Packages.gz`
-       old=SOURCES_$dist
+    eval NEW_SOURCES_$dist=`stat -c "%Y" $base/buildd/$dist/Sources.gz`
+    eval NEW_PACKAGES_$dist=`stat -c "%Y" $base/buildd/$dist/Packages.gz`
+    old=SOURCES_$dist
     new=NEW_$old
     if [ ${!new} -gt ${!old} ]; then
-               if [ -z "$dists" ]; then
-                       dists="$dist"
-               else
-                       dists="$dists $dist"
-               fi
-               continue
-       fi
-       old=PACKAGES_$dist
-       new=NEW_$old
+        if [ -z "$dists" ]; then
+            dists="$dist"
+        else
+            dists="$dists $dist"
+        fi
+        continue
+    fi
+    old=PACKAGES_$dist
+    new=NEW_$old
     if [ ${!new} -gt ${!old} ]; then
-               if [ -z "$dists" ]; then
-                       dists="$dist"
-               else
-                       dists="$dists $dist"
-               fi
-               continue
-       fi
+        if [ -z "$dists" ]; then
+            dists="$dist"
+        else
+            dists="$dists $dist"
+        fi
+        continue
+    fi
 done
 
 if [ ! -z "$dists" ]; then
-       # setup ssh master process
-       ssh wbadm@buildd -S $SSH_SOCKET -MN 2> /dev/null &
-       SSH_PID=$!
-       while [ ! -S $SSH_SOCKET ]; do
-               sleep 1
-       done
-       trap 'kill -TERM $SSH_PID' 0
-       for d in $dists; do
-               ssh wbadm@buildd -S $SSH_SOCKET trigger.security $d
-       done
+    # setup ssh master process
+    ssh wbadm@buildd -S $SSH_SOCKET -MN 2> /dev/null &
+    SSH_PID=$!
+    while [ ! -S $SSH_SOCKET ]; do
+        sleep 1
+    done
+    trap 'kill -TERM $SSH_PID' 0
+    for d in $dists; do
+        ssh wbadm@buildd -S $SSH_SOCKET trigger.security $d
+    done
 fi