Replacing os.link calls for hooks with shutil.copy to properly dereference symlinks in python stubs.
This commit is contained in:
parent
a5bd371568
commit
7bb90e9f5f
|
@ -84,7 +84,7 @@ def main():
|
|||
if verbose:
|
||||
print('I: Copying config/hooks/*.hook.binary to binary/live-build')
|
||||
|
||||
os.link(hook, os.path.join('binary/live-build/' + os.path.basename(hook)), follow_symlinks=True)
|
||||
shutil.copy(hook, os.path.join('binary/live-build/' + os.path.basename(hook)), follow_symlinks=True)
|
||||
|
||||
if verbose:
|
||||
print('I: Executing \' ' + hook + '\'')
|
||||
|
|
|
@ -84,7 +84,7 @@ def main():
|
|||
if verbose:
|
||||
print('I: Copying config/hooks/*.hook.bootstrap to chroot/live-build')
|
||||
|
||||
os.link(hook, os.path.join('chroot/live-build/' + os.path.basename(hook)), follow_symlinks=True)
|
||||
shutil.copy(hook, os.path.join('chroot/live-build/' + os.path.basename(hook)), follow_symlinks=True)
|
||||
|
||||
if verbose:
|
||||
print('I: Executing \' ' + hook + '\'')
|
||||
|
|
|
@ -84,7 +84,7 @@ def main():
|
|||
if verbose:
|
||||
print('I: Copying config/hooks/*.hook.chroot to chroot/live-build')
|
||||
|
||||
os.link(hook, os.path.join('chroot/live-build/' + os.path.basename(hook)), follow_symlinks=True)
|
||||
shutil.copy(hook, os.path.join('chroot/live-build/' + os.path.basename(hook)), follow_symlinks=True)
|
||||
|
||||
if verbose:
|
||||
print('I: Executing \' ' + hook + '\'')
|
||||
|
|
|
@ -84,7 +84,7 @@ def main():
|
|||
if verbose:
|
||||
print('I: Copying config/hooks/*.hook.source to source/live-build')
|
||||
|
||||
os.link(hook, os.path.join('source/live-build/' + os.path.basename(hook)), follow_symlinks=True)
|
||||
shutil.copy(hook, os.path.join('source/live-build/' + os.path.basename(hook)), follow_symlinks=True)
|
||||
|
||||
if verbose:
|
||||
print('I: Executing \' ' + hook + '\'')
|
||||
|
|
Loading…
Reference in New Issue