aboutsummaryrefslogtreecommitdiffstats
path: root/testing/apt-dater/02-refresh-ssh-flags.patch
diff options
context:
space:
mode:
authorHenrik Riomar <henrik.riomar@gmail.com>2017-04-10 17:34:09 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-06 17:50:03 +0000
commit05357e0f587a4983f66feb49f82ad0e790611877 (patch)
tree179c86c6c5d9200dd0cceaaae8d0b603c63185e1 /testing/apt-dater/02-refresh-ssh-flags.patch
parente8b436cfaa85d728665a93b7466b42639569873e (diff)
downloadaports-05357e0f587a4983f66feb49f82ad0e790611877.tar.bz2
aports-05357e0f587a4983f66feb49f82ad0e790611877.tar.xz
testing/apt-dater: new aport
Diffstat (limited to 'testing/apt-dater/02-refresh-ssh-flags.patch')
-rw-r--r--testing/apt-dater/02-refresh-ssh-flags.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/apt-dater/02-refresh-ssh-flags.patch b/testing/apt-dater/02-refresh-ssh-flags.patch
new file mode 100644
index 0000000000..b64a9f026e
--- /dev/null
+++ b/testing/apt-dater/02-refresh-ssh-flags.patch
@@ -0,0 +1,15 @@
+# Also use OptionalCmdFlags on refreshing hosts.
+# Closes: #678111
+
+diff -Naur apt-dater-0.9.0.orig/lib/cmd apt-dater-0.9.0/lib/cmd
+--- apt-dater-0.9.0.orig/lib/cmd 2012-05-28 22:21:48.000000000 +0200
++++ apt-dater-0.9.0/lib/cmd 2012-07-03 19:26:49.369476113 +0200
+@@ -157,7 +157,7 @@
+ ;;
+ refresh)
+ run_hook "$AD_HOOK_PRE_REFRESH"
+- $AD_SSH_CMD $AD_SSH_ID -n -o BatchMode=yes -o ConnectTimeout=5 $my_ssh_user $my_ssh_port "$AD_HOSTNAME" $AD_CMD_REFRESH 2>&1
++ $AD_SSH_CMD $AD_SSH_ID $AD_SSH_OPTFLAGS -n -o BatchMode=yes -o ConnectTimeout=5 $my_ssh_user $my_ssh_port "$AD_HOSTNAME" $AD_CMD_REFRESH 2>&1
+ run_hook "$AD_HOOK_POST_REFRESH"
+ ;;
+ *)