Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOrhun Parmaksız <orhunparmaksiz@gmail.com>2023-08-07 14:29:30 +0300
committerChristian Heusel <christian@heusel.eu>2024-02-15 22:23:54 +0100
commit39eaeaa4b2e021ec44cc63c70493f9c9ef0c8ba4 (patch)
tree24e38eebc33c16375291280b31f1f94e39bc3e05
parentc79a99314822fe4238b66f92c81b288208073a24 (diff)
feat(offload-build): use rsync instead of scp
This commit simply replaces the usage of `scp` with `rsync` for faster file transfer. Signed-off-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
-rw-r--r--src/offload-build.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/offload-build.in b/src/offload-build.in
index 8992c23..7a8c1fd 100644
--- a/src/offload-build.in
+++ b/src/offload-build.in
@@ -23,6 +23,7 @@ fi
repo=extra
arch=x86_64
server=build.archlinux.org
+rsyncopts=(-e ssh -c -h -L --progress --partial -y)
usage() {
cat <<- _EOF_
@@ -124,7 +125,7 @@ mapfile -t files < <(
if (( ${#files[@]} )); then
printf '%s\n' '' '-> copying files...'
- scp "${files[@]/#/$server:}" "${TEMPDIR}/"
+ rsync "${rsyncopts[@]}" "${files[@]/#/$server:}" "${TEMPDIR}/" || die
mv "${TEMPDIR}"/*.pkg.tar* "${PKGDEST:-${PWD}}/"
mv "${TEMPDIR}/PKGBUILD" "${PWD}/"
else