]> git.donarmstrong.com Git - debbugs.git/blob - examples/debian/versions/update-mldbm
50ce8804b8630fd2b65eda37736739ec815d3f21
[debbugs.git] / examples / debian / versions / update-mldbm
1 #! /bin/sh -e
2
3 cd /org/bugs.debian.org/versions/indices
4
5 ARCHIVES='ftp' # security -- should be included too, but too difficult to deal with
6
7 # Nuke old versions of versions.idx.new in case there's one hanging about
8 rm -f versions.idx.new
9 # This index is much larger and keeps track of historic versions of
10 # packages, and is used for expiring bugs
11 rm -f versions_time.idx.new
12 if [ -e versions_time.idx ]; then
13     cp versions_time.idx versions_time.idx.new;
14 fi;
15
16 ../bin/build-versions-db versions.idx.new versions_time.idx.new \
17                          /srv/bugs.debian.org/versions/indices/ftp \
18                          oldstable stable proposed-updates \
19                          testing \
20                          testing-proposed-updates \
21                          unstable \
22                          experimental;
23
24 # This removes old versions
25 ../bin/versions_time_cleanup
26
27 chmod 664 versions.idx.new
28 mv versions.idx.new versions.idx
29
30 chmod 664 versions_time.idx.new
31 mv versions_time.idx.new versions_time.idx