X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.dinstall;h=068ac625e98b1a6d4cd00aa368b330b2d74dd25c;hb=fb979d6ea8674b80caaedbcb79144bef45560d48;hp=09e9c9b10a2844e76f8fa5fffe7ca2d3df26573b;hpb=1a24585c805c924e25f567c8da728402d95a5cc8;p=dak.git diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index 09e9c9b1..068ac625 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -71,17 +71,17 @@ function stage() { ARGS='GO[@]' local "${!ARGS}" - error=${ERR:-"true"} + local error=${ERR:-"true"} ARGS=${ARGS:-""} log "########## DINSTALL BEGIN: ${FUNC} ${ARGS} ##########" - STAGEFILE="${stagedir}/${FUNC}_${ARGS}" + local STAGEFILE="${stagedir}/${FUNC}_${ARGS}" STAGEFILE=${STAGEFILE// /_} if [ -f "${STAGEFILE}" ]; then - stamptime=$(/usr/bin/stat -c %Z "${STAGEFILE}") - unixtime=$(date +%s) - difference=$(( $unixtime - $stamptime )) + local stamptime=$(/usr/bin/stat -c %Z "${STAGEFILE}") + local unixtime=$(date +%s) + local difference=$(( $unixtime - $stamptime )) if [ ${difference} -ge 14400 ]; then log_error "Did already run ${FUNC}, stagefile exists, but that was ${difference} seconds ago. Please check." else @@ -236,7 +236,7 @@ backports_policy none backports-policy fal cruft none cruft false false STATE indices none false false dominate none dominate false false -autocruft unstable\ experimental autocruft false false +autocruft none autocruft false false fingerprints none import-keyring false false overrides none overrides false false mpfm none pkg-file-mapping false false @@ -253,9 +253,9 @@ mklslar none mklslar fal mkfilesindices none mkfilesindices false false mkchecksums none mkchecksums false false mirror none mirror\ hardlinks false false -ddaccess none ddaccessible\ sync false false NOSTAGE remove_locks none false false STATE postlock none false false +ddaccess none ddaccessible\ sync true true changelogs none changelogs false true pg_timestamp postdinstall pg_dump2 false false expire none expire_dumps false true