From e8fe78707f9bc911c87fe1463139fdda773d9420 Mon Sep 17 00:00:00 2001 From: Steve McIntyre Date: Thu, 13 Aug 2015 10:21:59 +0200 Subject: When excluding source, re-include some non-source tar.gz files To: joerg@debian.org Cc: Steve McIntyre 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 Signed-off-by: Joerg Jaspert --- bin/ftpsync | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3