summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-25 15:05:22 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-25 15:05:22 -0700
commit9065f86cf61ae69968e7d1155d7ecb89688c037c (patch)
tree09a107026bff6bd5714c1d4c85d8844a374004e5
parent03cbb6c1d2a08d478dfbe8235d5e4ed47c9574ab (diff)
downloadportage-9065f86cf61ae69968e7d1155d7ecb89688c037c.tar.gz
portage-9065f86cf61ae69968e7d1155d7ecb89688c037c.tar.bz2
portage-9065f86cf61ae69968e7d1155d7ecb89688c037c.zip
Add default values for FETCHCOMMAND_SSH and RESUMECOMMAND_SSH
that call rsync.
-rw-r--r--cnf/make.globals3
1 files changed, 3 insertions, 0 deletions
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