commit: 3bc092d56607af8279b05552233e28532a985e64
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 5 19:06:23 2023 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Aug 5 19:06:23 2023 +0000
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=3bc092d5
catalyst-auto: add function upsync_binpackages
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
tools/catalyst-auto | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/tools/catalyst-auto b/tools/catalyst-auto
index 2dab0185..e83938fc 100755
--- a/tools/catalyst-auto
+++ b/tools/catalyst-auto
@@ -296,6 +296,35 @@ upload() {
fi
}
+upsync_binpackages() {
+ # parameter 1: a PKGDIR on the local host
+ # parameter 2: the target dir in the mirroring system, should be of the
+ # form arch/profileversion/name (e.g., amd64/17.0/x32 )
+ if [[ ${nonetwork} == 0 ]]; then
+ echo Upsyncing binpackages from $1 to $2
+ local SSH_CMD=(
+ ssh
+ -i ${UPLOAD_KEY}
+ -o UserKnownHostsFile=/dev/null
+ -o VerifyHostKeyDNS=yes
+ -o StrictHostKeyChecking=no
+ -o IPQoS=cs0
+ )
+ local RSYNC_OPTS=(
+ -e "${SSH_CMD[*]}"
+ --archive
+ --delete
+ --delete-after
+ --omit-dir-times
+ --delay-updates
+ )
+ rsync "${RSYNC_OPTS[@]}" "$1"
"${UPLOAD_USER}@releng-incoming.gentoo.org:/release/weekly/binpackages/$2"
+ else
+ echo Would now upsync binpackages from $1 to $2
+ ls -l $@
+ fi
+}
+
run_catalyst_commands() {
doneconfig=0
for config_file in "${config_files[@]}"; do