From: Don Armstrong Date: Thu, 29 Dec 2016 21:12:40 +0000 (-0800) Subject: build-versions-db now updates in-place X-Git-Tag: release/2.6.0~152 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=d83ffb68f75ae98ad5005eee9b173d5dac08c343;hp=29b55e4d5535a68cc6d2294f5c362d271b53c6d2 build-versions-db now updates in-place - remove all of the mv bits --- diff --git a/examples/debian/versions/update-mldbm b/examples/debian/versions/update-mldbm index 1df2b74..9a89302 100755 --- a/examples/debian/versions/update-mldbm +++ b/examples/debian/versions/update-mldbm @@ -4,29 +4,10 @@ cd /org/bugs.debian.org/versions/indices ARCHIVES='ftp' # security -- should be included too, but too difficult to deal with -# Nuke old versions of versions.idx.new in case there's one hanging about -rm -f versions.idx.new -# This index is much larger and keeps track of historic versions of -# packages, and is used for expiring bugs -rm -f versions_time.idx.new -if [ -e versions_time.idx ]; then - cp versions_time.idx versions_time.idx.new; -fi; - -set -e -../bin/build-versions-db versions.idx.new versions_time.idx.new \ +../bin/build-versions-db versions.idx versions_time.idx \ /srv/bugs.debian.org/versions/indices/ftp \ oldstable stable proposed-updates \ testing \ testing-proposed-updates \ unstable \ experimental; - -# This removes old versions -../bin/versions_time_cleanup - -chmod 664 versions.idx.new -mv versions.idx.new versions.idx - -chmod 664 versions_time.idx.new -mv versions_time.idx.new versions_time.idx