Add some boilerplate
[buildd-scripts.git] / bin / build-client
index 1c68bfe..28539b6 100755 (executable)
@@ -29,7 +29,7 @@ attempt_update () {
     rsync -a build@jack:build-config/ /etc/
     install -m 755 -o root -g root /etc/schroot/local-chroot.d/* /etc/schroot/chroot.d/
     rsync -a --delete build@jack:chroots/ /chroot/rebuildd/chroots/
-    apt-get update
+    apt-get update > /dev/null 2>&1
     
     MY_MD5=$(md5sum $0 | awk '{print $1}')
     JACK_MD5=$(ssh build@jack md5sum $JACK_SCRIPT | awk '{print $1}')
@@ -99,7 +99,8 @@ while true; do
     BNUM=$(echo $BNUM_PKG_VER_ARCH | cut -d " " -f1)
     PKG_VER_ARCH=$(echo $BNUM_PKG_VER_ARCH | cut -d " " -f2)
     if [ "$PKG_VER_ARCH" = "NOPACKAGE" ]; then
-       echo "Nothing to do, wait..."
+       DATE=$(date)
+       echo "$DATE: Nothing to do, wait..."
        sleep 10
        continue
     fi