summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
74149d0)
The exclude patterns should contain relative to the source paths
[(mapped[i], filesystems[i].mpoint) for i in mapped.keys()]
)
exclude = self._to_exclude() + [image]
[(mapped[i], filesystems[i].mpoint) for i in mapped.keys()]
)
exclude = self._to_exclude() + [image]
- rsync = Rsync('/', target, exclude)
+ rsync = Rsync('/', target,
+ map(lambda p: os.path.relpath(p, '/'), exclude))
msg = "Copying host files into the image"
rsync.archive().run(self.out, msg)
msg = "Copying host files into the image"
rsync.archive().run(self.out, msg)
dry_run = subprocess.Popen(cmd + ['-n', self.src, self.dest],
shell=False, stdout=subprocess.PIPE,
bufsize=0)
dry_run = subprocess.Popen(cmd + ['-n', self.src, self.dest],
shell=False, stdout=subprocess.PIPE,
bufsize=0)
- print "%r" % (cmd + ['-n', self.src, self.dest])
total = 0
for line in iter(dry_run.stdout.readline, b''):
total += 1
total = 0
for line in iter(dry_run.stdout.readline, b''):
total += 1