summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-06-11 10:33:53 +0200
committerErich Eckner <git@eckner.net>2020-06-11 10:37:44 +0200
commit55609a044fdcf520e90d1d93e245ce3240b6c6ad (patch)
treed77c33c9b7f35aa63bb9768b4ceb7d84c277af13
parent99f178a52f420cc419387b1a1da312c56dad4e79 (diff)
downloadarch-mirror-55609a044fdcf520e90d1d93e245ce3240b6c6ad.tar.xz
Revert "arch-mirror: only rsync --delete-after on last run"
This reverts commit 991bae95633c45186cb67391655cf65544c935f3.
-rwxr-xr-xarch-mirror7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch-mirror b/arch-mirror
index 9fb1c1c..a5ea10a 100755
--- a/arch-mirror
+++ b/arch-mirror
@@ -62,7 +62,6 @@ retrieve_file() {
retrieve_content() {
local url="$1"
local destination="$2"
- local level="$3"
if [ -z "${destination##*/archlinuxarm/}" ]; then
extra_options='--exclude os'
@@ -70,10 +69,6 @@ retrieve_content() {
unset extra_options
fi
- if [ "${level}" -eq 2 ]; then
- extra_options="${extra_options} --delete-after"
- fi
-
case "${url%%://*}" in
'rsync')
rsync ${rsync_options} ${rsync_verbose} ${extra_options} "${url}" "${destination}"
@@ -254,7 +249,7 @@ if [ $# -eq 2 ] && [ "$1" = 'mirror' ]; then
if [ "${level}" -le "${last_successful_level}" ]; then
continue
fi
- if retrieve_content "${url}" "${mirror_dir}${to_sync}" "${level}"; then
+ if retrieve_content "${url}" "${mirror_dir}${to_sync}"; then
last_successful_level="${level}"
fi
done