]> git.decadent.org.uk Git - dak.git/blobdiff - config/backports/cron.dinstall
right lockfile
[dak.git] / config / backports / cron.dinstall
index b26626af482683570f0de9ce5f20157f46044eed..c5c123adfb61655139a600275a726f9b3e0c9fef 100755 (executable)
@@ -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)")"
@@ -356,14 +363,6 @@ GO=(
 )
 stage $GO &
 
-GO=(
-    FUNC="reports"
-    TIME="reports"
-    ARGS=""
-    ERR=""
-)
-stage $GO &
-
 # GO=(
 #     FUNC="dm"
 #     TIME=""