X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fbackports%2Fcron.dinstall;h=5b03527917b3c669aa5565da4844a702a42e6813;hb=f8401c9fb2787840bf1c1cc66e4dc1ed7f02091f;hp=15e339f3e12d71284a7138d4f491ba1c00fc85a1;hpb=44606e96f011e2d7ab245efb9cc3e1a80043fdc6;p=dak.git diff --git a/config/backports/cron.dinstall b/config/backports/cron.dinstall index 15e339f3..5b035279 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)")" @@ -182,6 +189,14 @@ stage $GO lockfile "$LOCK_ACCEPTED" lockfile "$LOCK_NEW" +GO=( + FUNC="punew" + TIME="p-u-new" + ARGS="proposedupdates" + ERR="false" +) +stage $GO + GO=( FUNC="newstage" TIME="newstage" @@ -341,24 +356,24 @@ ts "locked part finished" state "postlock" GO=( - FUNC="pgdump_post" - TIME="pg_dump2" + FUNC="changelogs" + TIME="changelogs" ARGS="" - ERR="" + ERR="false" ) stage $GO & GO=( - FUNC="expire" - TIME="expire_dumps" + FUNC="pgdump_post" + TIME="pg_dump2" ARGS="" ERR="" ) stage $GO & GO=( - FUNC="reports" - TIME="reports" + FUNC="expire" + TIME="expire_dumps" ARGS="" ERR="" ) @@ -398,13 +413,16 @@ 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 + +# we need to wait for the background processes before the end of dinstall +wait log "Daily cron scripts successful, all done"