X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fbackports%2Fcron.dinstall;h=ab171f43504a95ad9ec4ca5accb6bbb18c3aa77e;hb=5d965c34b35048f8a8fab0a7a11f2943d833952d;hp=15e339f3e12d71284a7138d4f491ba1c00fc85a1;hpb=44606e96f011e2d7ab245efb9cc3e1a80043fdc6;p=dak.git diff --git a/config/backports/cron.dinstall b/config/backports/cron.dinstall index 15e339f3..ab171f43 100755 --- a/config/backports/cron.dinstall +++ b/config/backports/cron.dinstall @@ -152,6 +152,13 @@ umask 022 export LANG=C export LC_ALL=C +# If we did not install new packages, we dont want to run. +if ! [ -f "${DINSTALLPACKAGES}" ]; then + log "nothing to do" + exit 0 +fi +rm -f "${DINSTALLPACKAGES}" + touch "${DINSTALLSTART}" ts "startup" DINSTALLBEGIN="$(date -u +"%a %b %d %T %Z %Y (%s)")" @@ -398,13 +405,13 @@ GO=( ) stage $GO & -GO=( - FUNC="aptftpcleanup" - TIME="apt-ftparchive cleanup" - ARGS="" - ERR="false" -) -stage $GO +# GO=( +# FUNC="aptftpcleanup" +# TIME="apt-ftparchive cleanup" +# ARGS="" +# ERR="false" +# ) +# stage $GO log "Daily cron scripts successful, all done"