From 7bb90e9f5f36098da07cab7501e7e50cbc90d845 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 4 Nov 2013 07:29:18 +0100 Subject: Replacing os.link calls for hooks with shutil.copy to properly dereference symlinks in python stubs. --- components/binary_hooks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/binary_hooks') diff --git a/components/binary_hooks b/components/binary_hooks index 4393d3505..cea8903f4 100755 --- a/components/binary_hooks +++ b/components/binary_hooks @@ -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 + '\'') -- cgit v1.2.3