From: Ansgar Burchardt <ansgar@debian.org>
Date: Sun, 22 May 2016 14:07:07 +0000 (+0200)
Subject: Quote argument to --exclude
X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c080147bdebaac115e77ea7ab979ad5d22e7eaba;p=dak.git

Quote argument to --exclude

There must only be one argument passed to rsync's --exclude option,
the wildcard should not be expanded by the shell.
---

diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions
index f0acb683..2bbad17a 100755
--- a/config/debian/dinstall.functions
+++ b/config/debian/dinstall.functions
@@ -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 "./*.tmp" . ${ftpdir}/dists/${dir}/${comp}/dep11/.
                     cd ${dep11dir}
                 done
             fi