提交 c697c655 编写于 作者: J Joerg Jaspert

mkfilesindices

put the arch all debs into every architecture indice, not in the source indices...
Signed-off-by: NJoerg Jaspert <joerg@debian.org>
上级 316986ff
...@@ -10,7 +10,7 @@ ARCHLIST=$(tempfile) ...@@ -10,7 +10,7 @@ ARCHLIST=$(tempfile)
echo "Querying projectb..." 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 () { includedirs () {
perl -ne 'print; while (m,/[^/]+$,) { $_=$`; print $_ . "\n" unless $d{$_}++; }' perl -ne 'print; while (m,/[^/]+$,) { $_=$`; print $_ . "\n" unless $d{$_}++; }'
...@@ -31,9 +31,10 @@ echo "Generating sources list..." ...@@ -31,9 +31,10 @@ echo "Generating sources list..."
echo "Generating arch lists..." 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 for a in $ARCHES; do
(sed -n "s/|$a$//p" $ARCHLIST (sed -n "s/|$a$//p" $ARCHLIST
sed -n 's/|all$//p' $ARCHLIST
cd $base/ftp cd $base/ftp
find ./dists -maxdepth 1 \! -type d find ./dists -maxdepth 1 \! -type d
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册