Implement PORTAGE_BINHOST ssh:// protocol support by spawning ssh
authorZac Medico <zmedico@gentoo.org>
Sat, 25 Sep 2010 15:53:20 +0000 (08:53 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 25 Sep 2010 15:53:20 +0000 (08:53 -0700)
commitd9c4a7dec291f3f57296a1bf249887fa950bbcc1
tree8bfb62b553d9d5accfbc48c9853613e40dc0b351
parentbb4bf67155698ef3650ebb8bb2713b7d1e41cd40
Implement PORTAGE_BINHOST ssh:// protocol support by spawning ssh
and using it to stream the Packages file on stdout.

This assumes that you have ssh-agent running, for authentication.
For now, you won't be able to use this unless you define your own
FETCHCOMMAND_SSH and RESUMECOMMAND_SSH values. It's trivial to do
this if you create a helper script that calls rsync after
transforming the URI into the host:/path format that rsync uses.
pym/portage/dbapi/bintree.py