summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2023-08-06 02:12:47 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2023-08-06 02:12:47 +0200
commit7282c2264166b42d321f6797f4a2f75516a999b2 (patch)
tree3bd6385dfc00a418eb300c71c6c0b38ff9dc8f12
parentMake signing work (diff)
downloadmastermirror-scripts-7282c2264166b42d321f6797f4a2f75516a999b2.tar.gz
mastermirror-scripts-7282c2264166b42d321f6797f4a2f75516a999b2.tar.bz2
mastermirror-scripts-7282c2264166b42d321f6797f4a2f75516a999b2.zip
Make syncing work
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rwxr-xr-xsync-binpackages.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/sync-binpackages.sh b/sync-binpackages.sh
index dbee1d7..fe524d9 100755
--- a/sync-binpackages.sh
+++ b/sync-binpackages.sh
@@ -2,7 +2,7 @@
# Copyright 2011-2023 Gentoo Authors; Distributed under the GPL v2
# for testing
-ARCHES="arm64 sparc"
+ARCHES="sparc"
# Keep this variable in sync in both sign-binpackages.sh & sync-binpackages.sh
_ARCHES="alpha amd64 arm64 arm hppa ia64 loong m68k mips ppc riscv s390 sh sparc x86"
@@ -27,11 +27,12 @@ RSYNC_OPTS=(
--delete
--delete-after
--timeout=300
- --quiet
--mkpath
)
+[[ $(whoami) == "gmirror" ]] || exit 111
+
for a in ${ARCHES}; do
- [[ -d ${DSTDIR}${a}/binpackages ]] || mkdir ${DSTDIR}/${a}/binpackages
- ${RSYNC} ${RSYNC_ARGS} ${SRCDIR}/${a}/* ${DSTDIR}/${a}/binpackages/
+ [[ -d ${DSTDIR}/${a}/binpackages ]] || mkdir -p ${DSTDIR}/${a}/binpackages
+ rsync "${RSYNC_OPTS[@]}" ${SRCDIR}/${a}/* ${DSTDIR}/${a}/binpackages/
done