X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.dinstall;h=4c3613d507d17ed7c70630202540d3b48a611786;hb=11c5e4d559120ac40c31b27c9422c79dfa5e0960;hp=09e9c9b10a2844e76f8fa5fffe7ca2d3df26573b;hpb=1a24585c805c924e25f567c8da728402d95a5cc8;p=dak.git diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index 09e9c9b1..4c3613d5 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