From: Joerg Jaspert Date: Sat, 23 Jan 2010 10:55:19 +0000 (+0100) Subject: create an Uploaders index. closes: #478402 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=dc672574ad5dc70c44e77be4d740951a9dc02099;p=dak.git create an Uploaders index. closes: #478402 create the uploaders index in dinstall. Signed-off-by: Joerg Jaspert --- diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index fd32a9ee..61835f79 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -336,6 +336,14 @@ GO=( ) stage $GO +GO=( + FUNC="mkuploaders" + TIME="mkuploaders" + ARGS="" + ERR="" +) +stage $GO + GO=( FUNC="copyoverrides" TIME="copyoverrides" diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index cb772fd3..d3a7dc26 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -266,6 +266,24 @@ function mkmaintainers() { fi } +function mkuploaders() { + log 'Creating Uploaders index ... ' + + cd $indices + dak make-maintainers -u ${scriptdir}/masterfiles/pseudo-packages.maintainers | \ + sed -e "s/~[^ ]*\([ ]\)/\1/" | \ + awk '{printf "%-20s ", $1; for (i=2; i<=NF; i++) printf "%s ", $i; printf "\n";}' > .new-uploaders + + if ! cmp -s .new-uploaders Uploaders || [ ! -f Uploaders ]; then + log "installing Uploaders ... " + mv -f .new-uploaders Uploaders + gzip --rsyncable -9v .new-uploaders.gz + mv -f .new-uploaders.gz Uploaders.gz + else + rm -f .new-uploaders + fi +} + function copyoverrides() { log 'Copying override files into public view ...'