set -E
# import the general variable set.
-export SCRIPTVARS=/srv/ftp.debian.org/dak/config/debian/vars
+export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
. $SCRIPTVARS
########################################################################
touch "${DINSTALLSTART}"
ts "startup"
+DINSTALLBEGIN="$(date -u +"%a %b %d %T %Z %Y (%s)")"
+state "Startup"
lockfile -l 3600 "${LOCK_DAILY}"
trap onerror ERR
ARGS=""
ERR="false"
)
-stage $GO &
-
-GO=(
- FUNC="punew"
- TIME="p-u-new"
- ARGS="p-u-new"
- ERR=""
-)
-### TODO: policy-new
-#stage $GO
-
-GO=(
- FUNC="opunew"
- TIME="o-p-u-new"
- ARGS="o-p-u-new"
- ERR=""
-)
-### TODO: policy-new
-#stage $GO
+stage $GO
GO=(
FUNC="i18n1"
ARGS=""
ERR="false"
)
-stage $GO &
+stage $GO
lockfile "$LOCK_ACCEPTED"
lockfile "$LOCK_NEW"
GO=(
- FUNC="process_unchecked"
- TIME="unchecked"
+ FUNC="punew"
+ TIME="p-u-new"
+ ARGS="proposedupdates"
+ ERR="false"
+)
+stage $GO
+
+#GO=(
+# FUNC="opunew"
+# TIME="o-p-u-new"
+# ARGS="oldproposedupdates"
+# ERR="false"
+#)
+#stage $GO
+
+GO=(
+ FUNC="newstage"
+ TIME="newstage"
ARGS=""
ERR=""
)
-#stage $GO
+stage $GO
GO=(
FUNC="cruft"
)
stage $GO
-rm -f "$LOCK_ACCEPTED"
-rm -f "$LOCK_NEW"
+state "indices"
GO=(
- FUNC="msfl"
- TIME="make-suite-file-list"
+ FUNC="dominate"
+ TIME="dominate"
ARGS=""
ERR=""
)
ARGS=""
ERR="false"
)
-stage $GO &
+stage $GO
GO=(
FUNC="overrides"
)
stage $GO
+state "packages/contents"
GO=(
FUNC="packages"
TIME="apt-ftparchive"
ARGS=""
ERR=""
)
+# Careful: When we ever go and remove this monster-long thing, we have to check the backgrounded
+# functions before it. We no longer have a 1.5hour sync point then.
stage $GO
+state "dists/"
GO=(
FUNC="pdiff"
TIME="pdiff"
)
stage $GO
+state "scripts"
GO=(
- FUNC="scripts"
- TIME="scripts"
+ FUNC="mkmaintainers"
+ TIME="mkmaintainers"
ARGS=""
ERR=""
)
stage $GO
GO=(
- FUNC="mirror"
- TIME="mirror hardlinks"
+ FUNC="mkuploaders"
+ TIME="mkuploaders"
ARGS=""
ERR=""
)
stage $GO
GO=(
- FUNC="wb"
- TIME="w-b"
+ FUNC="copyoverrides"
+ TIME="copyoverrides"
ARGS=""
ERR=""
)
-stage $GO &
+stage $GO
+
+GO=(
+ FUNC="mklslar"
+ TIME="mklslar"
+ ARGS=""
+ ERR=""
+)
+stage $GO
+GO=(
+ FUNC="mkfilesindices"
+ TIME="mkfilesindices"
+ ARGS=""
+ ERR=""
+)
+stage $GO
+
+GO=(
+ FUNC="mkchecksums"
+ TIME="mkchecksums"
+ ARGS=""
+ ERR=""
+)
+stage $GO
+
+GO=(
+ FUNC="mirror"
+ TIME="mirror hardlinks"
+ ARGS=""
+ ERR=""
+)
+stage $GO
+
+rm -f "$LOCK_ACCEPTED"
+rm -f "$LOCK_NEW"
rm -f "${LOCK_DAILY}"
ts "locked part finished"
+state "postlock"
+
+GO=(
+ FUNC="changelogs"
+ TIME="changelogs"
+ ARGS=""
+ ERR="false"
+)
+stage $GO &
GO=(
FUNC="pgdump_post"
)
stage $GO &
-GO=(
- FUNC="reports"
- TIME="reports"
- ARGS=""
- ERR=""
-)
-stage $GO &
-
GO=(
FUNC="dm"
TIME=""
ARGS=""
ERR="false"
)
-stage $GO
+stage $GO &
GO=(
FUNC="i18n2"
ARGS=""
ERR="false"
)
-stage $GO
+stage $GO &
GO=(
FUNC="stats"
ARGS=""
ERR="false"
)
-stage $GO
+stage $GO &
-rm -f ${LOCK_BRITNEY}
+rm -f "${LOCK_BRITNEY}"
GO=(
FUNC="pgdakdev"
ERR="false"
)
stage $GO
+state "all done"
# Now, at the very (successful) end of dinstall, make sure we remove