Replacing os.link calls for hooks with shutil.copy to properly dereference symlinks in python stubs.

This commit is contained in:
Daniel Baumann 2013-11-04 07:29:18 +01:00
parent a5bd371568
commit 7bb90e9f5f
4 changed files with 4 additions and 4 deletions

View File

@ -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 + '\'')

View File

@ -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 + '\'')

View File

@ -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 + '\'')

View File

@ -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 + '\'')