X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fdinstall.functions;h=ae534ba60e3a60a66d8531456bacfb20ff70ea15;hb=307eb8c383eaea0f1c9d747d54df5bc00e76272c;hp=a7bf95ca8b8bd9d2a72deaef04ed55e5f13a1f7b;hpb=01bea71d37e475eb08b1bc4e3e4fcd1cf62b078a;p=dak.git diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index a7bf95ca..ae534ba6 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -193,31 +193,14 @@ function mklslar() { FILENAME=ls-lR log "Removing any core files ..." - find -type f -name core -print0 | xargs -0r rm -v - - log "Checking permissions on files in the FTP tree ..." - find -type f \( \! -perm -444 -o -perm +002 \) -ls - find -type d \( \! -perm -555 -o -perm +002 \) -ls + find -type f -name core -print -delete log "Checking symlinks ..." symlinks -rd . log "Creating recursive directory listing ... " - rm -f .${FILENAME}.new - TZ=UTC ls -lR > .${FILENAME}.new - - if [ -r ${FILENAME}.gz ] ; then - mv -f ${FILENAME}.gz ${FILENAME}.old.gz - mv -f .${FILENAME}.new ${FILENAME} - rm -f ${FILENAME}.patch.gz - zcat ${FILENAME}.old.gz | diff -u - ${FILENAME} | gzip -9cfn - >${FILENAME}.patch.gz - rm -f ${FILENAME}.old.gz - else - mv -f .${FILENAME}.new ${FILENAME} - fi - - gzip -9cfN ${FILENAME} >${FILENAME}.gz - rm -f ${FILENAME} + rm -f ${FILENAME}.gz + TZ=UTC ls -lR | gzip -9c --rsyncable > ${FILENAME}.gz } function mkmaintainers() { @@ -240,6 +223,7 @@ function copyoverrides() { } function mkfilesindices() { + set +o pipefail umask 002 cd $base/ftp/indices/files/components @@ -329,6 +313,7 @@ function mkfilesindices() { rm -f $ARCHLIST log "Done!" + set -o pipefail } function mkchecksums() {