summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-10 09:24:34 +0200
committerErich Eckner <git@eckner.net>2018-09-10 09:24:34 +0200
commit6d10a24d55bfdadcce69f3f0beb4c1a018af8060 (patch)
tree30e2c60375f9ae6590b2b440f67c1a61229bf686 /bin
parent1c608353d51ad59d9fafbc71067c988ce7a584d1 (diff)
downloadbuilder-6d10a24d55bfdadcce69f3f0beb4c1a018af8060.tar.xz
lib/common-functions: failsafe_sftp() new
Diffstat (limited to 'bin')
-rwxr-xr-xbin/copy-to-build-support2
-rwxr-xr-xbin/db-update2
-rwxr-xr-xbin/delete-packages2
3 files changed, 3 insertions, 3 deletions
diff --git a/bin/copy-to-build-support b/bin/copy-to-build-support
index 8024965..70e26e7 100755
--- a/bin/copy-to-build-support
+++ b/bin/copy-to-build-support
@@ -189,7 +189,7 @@ if [ -s "${tmp_dir}/to-copy" ]; then
fi
if [ -s "${tmp_dir}/sftp-command" ]; then
- ${master_mirror_sftp_command} < \
+ failsafe_sftp < \
"${tmp_dir}/sftp-command"
fi
diff --git a/bin/db-update b/bin/db-update
index 6bdbf7e..367fb36 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -442,7 +442,7 @@ for source_stability in \
if ${no_action}; then
sed 's|^|sftp: |'
else
- ${master_mirror_sftp_command}
+ failsafe_sftp
fi
if ${no_action}; then
diff --git a/bin/delete-packages b/bin/delete-packages
index 6d752d1..50fc853 100755
--- a/bin/delete-packages
+++ b/bin/delete-packages
@@ -398,4 +398,4 @@ sed '
s/^/rm "/
s/$/"/
' "${tmp_dir}/package-files" | \
- ${master_mirror_sftp_command}
+ failsafe_sftp