X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fdinstall.functions;h=ee1b58e27a87be2d58a3e19d75bca6aa8654b637;hb=5390eff0ba7a732269f040b0a4c4a3b9a0db2733;hp=8e8735bf85ec42286b79cf5df51d71b56cee4310;hpb=1bbc46bb933a97c90a4c36b621c7e202398e2d8d;p=dak.git diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index 8e8735bf..ee1b58e2 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -146,14 +146,21 @@ function overrides() { } function mpfm() { + local archiveroot + log "Generating package / file mapping" - dak make-pkg-file-mapping ftp-master | bzip2 -9 > $base/ftp/indices/package-file.map.bz2 + for archive in "${public_archives[@]}"; do + archiveroot="$(get_archiveroot "${archive}")" + dak make-pkg-file-mapping "${archive}" | bzip2 -9 > "${archiveroot}/indices/package-file.map.bz2" + done } function packages() { log "Generating Packages and Sources files" - dak generate-packages-sources2 -a ftp-master - dak contents generate -a ftp-master + for archive in "${public_archives[@]}"; do + dak generate-packages-sources2 -a "${archive}" + dak contents generate -a "${archive}" + done } function pdiff() { @@ -170,8 +177,11 @@ function release() { $scriptsdir/generate-i18n-Index $dist; done ) + log "Generating Release files" - dak generate-releases -a ftp-master + for archive in "${public_archives[@]}"; do + dak generate-releases -a "${archive}" + done } function dakcleanup() { @@ -188,28 +198,38 @@ function buildd_dir() { } function mklslar() { - cd $ftpdir + local archiveroot + local FILENAME=ls-lR - FILENAME=ls-lR + for archive in "${public_archives[@]}"; do + archiveroot="$(get_archiveroot "${archive}")" + cd "${archiveroot}" - log "Removing any core files ..." - find -type f -name core -print -delete + log "Removing any core files ..." + find -type f -name core -print -delete - log "Checking symlinks ..." - symlinks -rd . + log "Checking symlinks ..." + symlinks -rd . - log "Creating recursive directory listing ... " - rm -f ${FILENAME}.gz - TZ=UTC ls -lR | gzip -9c --rsyncable > ${FILENAME}.gz + log "Creating recursive directory listing ... " + rm -f ${FILENAME}.gz + TZ=UTC ls -lR | gzip -9c --rsyncable > ${FILENAME}.gz + done } function mkmaintainers() { + local archiveroot + log 'Creating Maintainers index ... ' - cd $indices - dak make-maintainers -a ftp-master ${scriptdir}/masterfiles/pseudo-packages.maintainers - gzip -9v --rsyncable Maintainers.gz - gzip -9v --rsyncable Uploaders.gz + for archive in "${public_archives[@]}"; do + archiveroot="$(get_archiveroot "${archive}")" + cd "${archiveroot}/indices" + + dak make-maintainers -a "${archive}" ${scriptdir}/masterfiles/pseudo-packages.maintainers + gzip -9v --rsyncable Maintainers.gz + gzip -9v --rsyncable Uploaders.gz + done } function copyoverrides() { @@ -401,8 +421,7 @@ function transitionsclean() { } function dm() { - log "Updating DM html page" - $scriptsdir/dm-monitor >$webdir/dm-uploaders.html + log "Updating DM permissions page" dak acl export-per-source dm >$exportdir/dm.txt }