X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fdebian%2Fmkfilesindices;h=03b3ea0cc2650906c12cee50b0920101b042de2a;hb=660707b3d9ea402593ba00d9631f604df2c50323;hp=4401289e7e2a62f68e28d2be716958cc203c8330;hpb=47537927e128d1118ea2515c13a13b6f176355e4;p=dak.git diff --git a/scripts/debian/mkfilesindices b/scripts/debian/mkfilesindices index 4401289e..03b3ea0c 100755 --- a/scripts/debian/mkfilesindices +++ b/scripts/debian/mkfilesindices @@ -10,7 +10,7 @@ ARCHLIST=$(tempfile) echo "Querying projectb..." -echo 'SELECT l.path, f.filename, a.arch_string FROM location l JOIN files f ON (f.location = l.id) LEFT OUTER JOIN (binaries b JOIN architecture a ON (b.architecture = a.id)) ON (f.id = b.file)' | psql projectb -At | sed 's/|//;s/|all$/|/;s,^/srv/ftp.debian.org/ftp,.,' | sort >$ARCHLIST +echo 'SELECT l.path, f.filename, a.arch_string FROM location l JOIN files f ON (f.location = l.id) LEFT OUTER JOIN (binaries b JOIN architecture a ON (b.architecture = a.id)) ON (f.id = b.file)' | psql projectb -At | sed 's/|//;s,^/srv/ftp.debian.org/ftp,.,' | sort >$ARCHLIST includedirs () { perl -ne 'print; while (m,/[^/]+$,) { $_=$`; print $_ . "\n" unless $d{$_}++; }' @@ -31,9 +31,10 @@ echo "Generating sources list..." echo "Generating arch lists..." -ARCHES=$( (<$ARCHLIST sed -n 's/^.*|//p'; echo amd64) | grep . | sort -u) +ARCHES=$( (<$ARCHLIST sed -n 's/^.*|//p'; echo amd64) | grep . | grep -v all | sort -u) for a in $ARCHES; do (sed -n "s/|$a$//p" $ARCHLIST + sed -n 's/|all$//p' $ARCHLIST cd $base/ftp find ./dists -maxdepth 1 \! -type d @@ -81,12 +82,12 @@ for a in $ARCHES; do done (cd $base/ftp/ - for dist in unstable testing; do + for dist in sid lenny; do find ./dists/$dist/main/i18n/ \! -type d | sort -u | gzip -9 > $base/ftp/indices/files/components/translation-$dist.list.gz done ) -(cat ../arch-i386.files ../arch-amd64.files; zcat suite-proposed-updates.list.gz ; zcat translation-unstable.list.gz ; zcat translation-testing.list.gz) | +(cat ../arch-i386.files ../arch-amd64.files; zcat suite-proposed-updates.list.gz ; zcat translation-sid.list.gz ; zcat translation-lenny.list.gz) | sort -u | poolfirst > ../typical.files rm -f $ARCHLIST