[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] 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 <joerg@debian.org>
---
 config/debian/dinstall.functions |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions
index 508e60e..587df1b 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() {
-- 
1.7.2.3


Reply to: