summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2015-08-13 10:21:59 +0200
committerJoerg Jaspert <joerg@debian.org>2015-08-13 10:21:59 +0200
commite8fe78707f9bc911c87fe1463139fdda773d9420 (patch)
tree5be9ff3456c5ca9eb8eb238d2513d95d08082888
parent3ac9e0d8c90688547f77d3aa1fee5f15ac7376e5 (diff)
When excluding source, re-include some non-source tar.gz files
To: joerg@debian.org Cc: Steve McIntyre <steve@einval.com> Date: Wed, 12 Aug 2015 16:11:19 +0100 (17 hours, 9 minutes, 48 seconds ago) Excluding source will cause rsync to drop all *.tar.gz from the mirro, but some of those in the archive are not actually source files. Over-ride and re-include them. Signed-off-by: Steve McIntyre <steve@einval.com> Signed-off-by: Joerg Jaspert <joerg@debian.org>
-rwxr-xr-xbin/ftpsync4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index a67d20b..eea62cf 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -379,6 +379,10 @@ for ARCH in ${ARCH_EXCLUDE}; do
if [ "${ARCH}" = "source" ]; then
if [ -z ${SOURCE_EXCLUDE} ]; then
SOURCE_EXCLUDE=" --exclude=source/ --exclude=*.tar.gz --exclude=*.diff.gz --exclude=*.tar.bz2 --exclude=*.tar.xz --exclude=*.diff.bz2 --exclude=*.dsc "
+ # Over-ride the exclude=*.tar.gz above - there are some
+ # tar.gz files in the archive that are *not* source
+ # files...
+ SOURCE_EXCLUDE="$SOURCE_EXCLUDE --include=debian-cd_info.tar.gz --include=debian-faq.en.html.tar.gz --include=netboot.tar.gz --include=nfsroot.tar.gz --include=hd-media.tar.gz --include=dedication*.tar.gz"
fi
fi
done