From 9065f86cf61ae69968e7d1155d7ecb89688c037c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 25 Sep 2010 15:05:22 -0700 Subject: [PATCH] Add default values for FETCHCOMMAND_SSH and RESUMECOMMAND_SSH that call rsync. --- cnf/make.globals | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cnf/make.globals b/cnf/make.globals index e3c17c5d1..d14d0519e 100644 --- a/cnf/make.globals +++ b/cnf/make.globals @@ -43,6 +43,9 @@ RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O \"\${DISTDIR}/\${FIL FETCHCOMMAND_RSYNC="rsync -avP \"\${URI}\" \"\${DISTDIR}/\${FILE}\"" RESUMECOMMAND_RSYNC="rsync -avP \"\${URI}\" \"\${DISTDIR}/\${FILE}\"" +FETCHCOMMAND_SSH="bash -c \"x=\\\${2#ssh://} ; exec rsync -avP \\\"\\\${x%%/*}:/\\\${x#*/}\\\" \\\"\\\$1\\\"\" rsync \"\${DISTDIR}/\${FILE}\" \"\${URI}\"" +RESUMECOMMAND_SSH=${FETCHCOMMAND_SSH} + # Default user options FEATURES="assume-digests binpkg-logs distlocks fixpackages fixlafiles news parallel-fetch protect-owned -- 2.26.2