Signed-off-by: Joerg Jaspert <joerg@debian.org>
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)")"
LOCK_NEW="$lockdir/processnew.lock"
NOTICE="$lockdir/daily.lock"
LOCK_BUILDD="$lockdir/buildd.lock"
+# The state file telling us we have something new to do
+DINSTALLPACKAGES="${lockdir}/dinstall.packages"
# our name
PROGRAM="unchecked"
do_unchecked
if [ ! -z "$changes" ]; then
+ touch ${DINSTALLPACKAGES}
sync_debbugs
do_buildd
+
# echo "Starting g-p-s: $(date +%H:%M:%S)"
# do_dists
# echo "Done with g-p-s: $(date +%H:%M:%S)"
# The mirror trace file
TRACEFILE="${ftpdir}/project/trace/backports-master.debian.org"
+
+# The state file telling us we have something new to do
+DINSTALLPACKAGES="${lockdir}/dinstall.packages"