]> git.decadent.org.uk Git - dak.git/commitdiff
create an Uploaders index. closes: #478402
authorJoerg Jaspert <joerg@debian.org>
Sat, 23 Jan 2010 10:55:19 +0000 (11:55 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sat, 23 Jan 2010 10:55:19 +0000 (11:55 +0100)
create the uploaders index in dinstall.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
config/debian/cron.dinstall
config/debian/dinstall.functions

index fd32a9ee8389280e8c8f8fcc1cea1c6d4f5ef874..61835f79e62aff8060f0e005cc7a7c27dc43d412 100755 (executable)
@@ -336,6 +336,14 @@ GO=(
 )
 stage $GO
 
+GO=(
+    FUNC="mkuploaders"
+    TIME="mkuploaders"
+    ARGS=""
+    ERR=""
+)
+stage $GO
+
 GO=(
     FUNC="copyoverrides"
     TIME="copyoverrides"
index cb772fd32dabc2d64f781fc11a5a5ead32edb32b..d3a7dc26d258f4a336eb7481b3f12c5e66608044 100644 (file)
@@ -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 <Uploaders >.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 ...'