mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-12-23 17:55:04 +01:00
Fix install_files in the case relative_trick=True
This commit is contained in:
parent
5eaf7aee1b
commit
e09a32467f
@ -911,6 +911,7 @@ def add_install_task(self, **kw):
|
||||
tsk.type = kw['type']
|
||||
tsk.install_to = tsk.dest = kw['install_to']
|
||||
tsk.install_from = kw['install_from']
|
||||
tsk.relative_base = kw.get('cwd') or kw.get('relative_base', self.path)
|
||||
tsk.init_files()
|
||||
if not kw.get('postpone', True):
|
||||
tsk.run_now()
|
||||
@ -960,7 +961,7 @@ class inst(Task.Task):
|
||||
else:
|
||||
for y in inputs:
|
||||
if self.relative_trick:
|
||||
destfile = os.path.join(dest, y.path_from(self.generator.path))
|
||||
destfile = os.path.join(dest, y.path_from(self.relative_base))
|
||||
else:
|
||||
destfile = os.path.join(dest, y.name)
|
||||
outputs.append(self.generator.bld.root.make_node(destfile))
|
||||
|
Loading…
Reference in New Issue
Block a user