]> git.decadent.org.uk Git - dak.git/commitdiff
indicate to britney whether or not the Packages update was successful
authorMark Hymers <mhy@debian.org>
Fri, 8 Aug 2008 02:21:35 +0000 (02:21 +0000)
committerMark Hymers <mhy@debian.org>
Fri, 8 Aug 2008 02:21:35 +0000 (02:21 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
config/debian/cron.dinstall

index b8b25d7a3d0911b072bb57991ad596825ac03117..7710ebd3e68430c74392ad0223e6fa886b4ccc63 100755 (executable)
@@ -24,6 +24,7 @@ TS=0
 NOTICE="$ftpdir/Archive_Maintenance_In_Progress"
 LOCKCU="$lockdir/daily.lock"
 LOCKAC="$lockdir/unchecked.lock"
+BRITNEYLOCK="$lockdir/britney.lock"
 lockac=0
 
 cleanup() {
@@ -37,6 +38,11 @@ cleanup() {
 lockfile -l 3600 $LOCKCU
 trap cleanup 0
 
+# This file is simply used to indicate to britney whether or not
+# the Packages file updates completed sucessfully.  It's not a lock
+# from our point of view
+touch ${BRITNEYLOCK}
+
 rm -f "$NOTICE"
 cat > "$NOTICE" <<EOF
 Packages are currently being installed and indices rebuilt.
@@ -240,6 +246,9 @@ R --slave --vanilla < $base/misc/ftpstats.R
 
 ts
 
+# Remove the britney lock
+rm -f ${BRITNEYLOCK}
+
 # Clean up apt-ftparchive's databases
 echo "Clean up apt-ftparchive's databases"
 cd $configdir