From: Joerg Jaspert Date: Sat, 12 Mar 2011 09:51:42 +0000 (+0100) Subject: dinstall - mirror X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=1eb18077dfc10f7ba80a94fc2e85c79b944e4d61;p=dak.git dinstall - mirror exclude the temporary files from apt-ftparchive (*.new), and delete excluded files too. Should keep the mirrors happy, cos those files arent readable for others. Signed-off-by: Joerg Jaspert --- diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index 508e60e6..587df1b5 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -440,7 +440,7 @@ function mirror() { echo "Running on host: $(hostname -f)" >> ${TRACEFILE} echo "Archive serial: ${SERIAL}" >> ${TRACEFILE} cd ${mirrordir} - rsync -aH --link-dest ${ftpdir} --delete --delete-after --ignore-errors ${ftpdir}/. . + rsync -aH --link-dest ${ftpdir} --delete --delete-after --delete-excluded --exclude Packages.*.new --exclude Sources.*.new --ignore-errors ${ftpdir}/. . } function expire() {