]> git.decadent.org.uk Git - dak.git/commitdiff
Do not remove "by-hash" directory
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 22 May 2016 14:10:48 +0000 (16:10 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 22 May 2016 14:19:34 +0000 (16:19 +0200)
config/debian/dinstall.functions

index 2bbad17a1f6b31db2d463cc9d902e1933a965ae6..63a2653009eaec62bbf193356b19903d79964d10 100755 (executable)
@@ -117,7 +117,7 @@ function i18n1() {
                 for dir in ${extimportdists}; do
                     if [[ -d dists/${dir}/  ]]; then
                         cd dists/${dir}/main/i18n
-                        rsync -aq --delete --delete-after --exclude Translation-en.bz2 --exclude Translation-*.diff/ . ${ftpdir}/dists/${dir}/main/i18n/.
+                        rsync -aq --delete --delete-after --exclude by-hash --exclude Translation-en.bz2 --exclude "Translation-*.diff/" . ${ftpdir}/dists/${dir}/main/i18n/.
                     fi
                     cd ${scriptdir}/i18nsync
                 done
@@ -152,7 +152,7 @@ function dep11() {
                 for comp in main contrib non-free; do
                     mkdir -p ${ftpdir}/dists/${dir}/${comp}/dep11
                     cd ${dir}/${comp}
-                    rsync -aq --delete --delete-after --exclude "./*.tmp" . ${ftpdir}/dists/${dir}/${comp}/dep11/.
+                    rsync -aq --delete --delete-after --exclude by-hash --exclude "./*.tmp" . ${ftpdir}/dists/${dir}/${comp}/dep11/.
                     cd ${dep11dir}
                 done
             fi
@@ -491,7 +491,7 @@ function mirror() {
 
         mkdir -p ${targetpath}
         cd ${targetpath}
-        rsync -aH --link-dest ${archiveroot} --delete --delete-after --delete-excluded --exclude Packages.*.new --exclude Sources.*.new  --ignore-errors ${archiveroot}/. .
+        rsync -aH --link-dest ${archiveroot} --delete --delete-after --delete-excluded --exclude "Packages.*.new" --exclude "Sources.*.new"  --ignore-errors ${archiveroot}/. .
     done
 }