[svn r38378] snapshot commit for: each rsync root is now copied to

remote-topdir.join(root.basename)

--HG--
branch : trunk
This commit is contained in:
hpk
2007-02-10 14:21:26 +01:00
parent 663447a7d1
commit e11e7472bc
2 changed files with 8 additions and 5 deletions

View File

@@ -139,7 +139,10 @@ class HostManager(object):
for root in self.roots:
rsync = HostRSync(root, ignores=ignores,
verbose=self.config.option.verbose)
destrelpath = root.relto(self.config.topdir)
if root == self.config.topdir:
destrelpath =""
else:
destrelpath = root.basename
for host in self.hosts:
rsync.add_target_host(host, destrelpath, reporter)
rsync.send(raises=False)