Commit 29274f83 authored by Nikos Skalkotos's avatar Nikos Skalkotos

Ommit using os.path.relpath

The method has different behaviour in python 2.6 and python 2.7.
In python 2.6, os.path.relpath('/proc', '/) will output '../proc'
where in python 2.7 it will output 'proc'.
parent e62eb365
......@@ -385,8 +385,7 @@ class BundleVolume(object):
rsync = Rsync(self.out)
# Excluded paths need to be relative to the source
for excl in map(lambda p: os.path.relpath(p, '/'),
excluded + [image]):
for excl in map(lambda p: p[1:], excluded + [image]):
rsync.exclude(excl)
rsync.archive().hard_links().xattrs().sparse().acls()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment