From: James Troup Date: Sat, 20 May 2006 23:54:35 +0000 (-0500) Subject: Drop support for uncompressed ls-lR file. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=019a64264d405d429e04660dabc563e5f0b86ffa;p=dak.git Drop support for uncompressed ls-lR file. --- diff --git a/scripts/debian/mklslar b/scripts/debian/mklslar index c00c0651..5d72df5f 100755 --- a/scripts/debian/mklslar +++ b/scripts/debian/mklslar @@ -23,14 +23,15 @@ echo "Creating recursive directory listing ... " rm -f .$filename.new TZ=UTC ls -lR | grep -v Archive_Maintenance_In_Progress > .$filename.new -if [ -r $filename ] ; then - mv -f $filename $filename.old +if [ -r ${filename}.gz ] ; then + mv -f ${filename}.gz $filename.old.gz mv -f .$filename.new $filename rm -f $filename.patch.gz - diff -u $filename.old $filename | gzip -9cfn - >$filename.patch.gz - rm -f $filename.old + 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