Use relative target in symlinks to modified files in view (#42699)
This commit is contained in:
parent
ad6dc0d103
commit
0ee3a3c401
@ -180,7 +180,7 @@ def add_files_to_view(self, view, merge_map, skip_if_exists=True):
|
|||||||
except (OSError, KeyError):
|
except (OSError, KeyError):
|
||||||
target = None
|
target = None
|
||||||
if target:
|
if target:
|
||||||
os.symlink(target, dst)
|
os.symlink(os.path.relpath(target, os.path.dirname(dst)), dst)
|
||||||
else:
|
else:
|
||||||
view.link(src, dst, spec=self.spec)
|
view.link(src, dst, spec=self.spec)
|
||||||
|
|
||||||
|
@ -1306,7 +1306,7 @@ def add_files_to_view(self, view, merge_map, skip_if_exists=True):
|
|||||||
except (OSError, KeyError):
|
except (OSError, KeyError):
|
||||||
target = None
|
target = None
|
||||||
if target:
|
if target:
|
||||||
os.symlink(target, dst)
|
os.symlink(os.path.relpath(target, os.path.dirname(dst)), dst)
|
||||||
else:
|
else:
|
||||||
view.link(src, dst, spec=self.spec)
|
view.link(src, dst, spec=self.spec)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user