]> git.decadent.org.uk Git - dak.git/commitdiff
* config/debian/dinstall.functions: Fix up mklslar a bit
authorJoerg Jaspert <joerg@debian.org>
Sat, 11 Aug 2012 15:06:14 +0000 (17:06 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sat, 11 Aug 2012 15:06:14 +0000 (17:06 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
config/debian/dinstall.functions

index a7bf95ca8b8bd9d2a72deaef04ed55e5f13a1f7b..535f109fa784b8e16b9c1fd0c32a3321073b6490 100644 (file)
@@ -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() {