3 cd /org/bugs.debian.org/versions/indices
5 ARCHIVES='ftp' # security -- should be included too, but too difficult to deal with
7 # Nuke old versions of versions.idx.new in case there's one hanging about
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;
17 for archive in $ARCHIVES; do
20 SUITES='oldstable stable proposed-updates testing testing-proposed-updates unstable experimental'
21 di_main='main main/debian-installer'
28 SUITES='oldstable stable testing'
32 for suite in $SUITES; do
33 if [ "$suite" != "oldstable" ] || [ -d /org/bugs.debian.org/etc/indices/$archive/$suite ]; then
35 oldstable|stable|proposed-updates)
36 ARCHES='alpha amd64 arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc'
38 testing|testing-proposed-updates)
39 ARCHES='alpha amd64 arm hppa i386 ia64 mips mipsel powerpc s390 sparc'
41 unstable|experimental)
42 ARCHES='alpha amd64 arm hppa hurd-i386 i386 ia64 m68k mips mipsel powerpc s390 sparc'
46 oldstable|experimental)
47 COMPONENTS='main contrib non-free'
49 stable|proposed-updates|testing|testing-proposed-updates|unstable)
50 COMPONENTS="$di_main contrib non-free"
53 for component in $COMPONENTS; do
54 for arch in $ARCHES; do
55 zcat "/org/bugs.debian.org/etc/indices/$archive/$suite/$component/binary-$arch/Packages.gz" | ../bin/build-mldbm.pl "$archive" "$suite" "$arch"
57 if [ "$component" != main/debian-installer ]; then
58 zcat "/org/bugs.debian.org/etc/indices/$archive/$suite/$component/source/Sources.gz" | ../bin/build-mldbm.pl "$archive" "$suite" source
65 # This removes old versions
66 ../bin/versions_time_cleanup
68 chmod 664 versions.idx.new
69 mv versions.idx.new versions.idx
71 chmod 664 versions_time.idx.new
72 mv versions_time.idx.new versions_time.idx