X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fbackports%2Fcron.dinstall;h=ab171f43504a95ad9ec4ca5accb6bbb18c3aa77e;hb=7f4d35fbb32109cc31edc50b054035e133e4bb52;hp=b26626af482683570f0de9ce5f20157f46044eed;hpb=fe0a173ec903c28ee3ebbd7ae1c07412ea341459;p=dak.git diff --git a/config/backports/cron.dinstall b/config/backports/cron.dinstall index b26626af..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)")"