NOTICE="$ftpdir/Archive_Maintenance_In_Progress"
LOCKCU="$lockdir/daily.lock"
LOCKAC="$lockdir/unchecked.lock"
+BRITNEYLOCK="$lockdir/britney.lock"
lockac=0
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.
./mkfilesindices
./mkchecksums
+ts
+
+# (Re)generate the hardlinked mirror directory for "public" buildd / mirror access
+echo "Regenerating mirror/ hardlink fun"
+cd ${mirrordir}
+rsync -aH --link-dest ${ftpdir} --delete --delete-after --ignore-errors ${ftpdir}/. .
+
+
ts
echo "Trigger daily wanna-build run"
ts
+# Remove the britney lock
+rm -f ${BRITNEYLOCK}
+
# Clean up apt-ftparchive's databases
echo "Clean up apt-ftparchive's databases"
cd $configdir