aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-06-14 17:51:06 +0200
committerMichał Górny <mgorny@gentoo.org>2018-06-14 17:53:39 +0200
commit1ecf69392e55f93cd12b3133e6d68d96cdea2e02 (patch)
tree4e61121fe9c6a4594334e98d1407da4eb5dd0dd3
parentrsync-gen: Try R/P the other way around (diff)
downloadmastermirror-scripts-1ecf69392e55f93cd12b3133e6d68d96cdea2e02.tar.gz
mastermirror-scripts-1ecf69392e55f93cd12b3133e6d68d96cdea2e02.tar.bz2
mastermirror-scripts-1ecf69392e55f93cd12b3133e6d68d96cdea2e02.zip
rsync-gen: Delete stale Manifests from metadata/ manually20180614T155352Z
-rwxr-xr-xrsync-gen.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/rsync-gen.sh b/rsync-gen.sh
index 8498785..63701e7 100755
--- a/rsync-gen.sh
+++ b/rsync-gen.sh
@@ -126,14 +126,17 @@ timelog_start "STAGEDIR_repo_gentoo RSYNC" | timelogger
rsync -Wqa --checksum --no-times \
$RSYNC_GIT_EXCLUDE \
--filter 'P /metadata/***' \
- --filter 'R /metadata/**/Manifest' \
- --filter 'R /metadata/**/Manifest.gz' \
- --filter 'R /metadata/**/Manifest.files.gz' \
--delete --delete-excluded \
${EXPORTS}/gentoo-x86/ ${STAGEDIR_repo_gentoo}/ || exit
timelog___end "STAGEDIR_repo_gentoo RSYNC" | timelogger
# end 1b)
+# metadata tree is protected, so we need to repeat potentially-stale
+# Manifests separately (I couldn't get any R-rules to work)
+find "${STAGEDIR_repo_gentoo}"/ '(' \
+ -name 'Manifest' -o -name 'Manifest.gz' -o -name 'Manifest.files.gz' \
+ ')' -delete
+
# 1c) source (bash -n) eclasses to check for syntax errors
timelog_start "ECLASS CHECK" | timelogger
for i in ${STAGEDIR_repo_gentoo}/eclass/*.eclass; do