diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/path.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py index d0588baf15..46783f8668 100644 --- a/meta/lib/oe/path.py +++ b/meta/lib/oe/path.py @@ -95,9 +95,7 @@ def copyhardlinktree(src, dst): # writers try and create a directory at the same time cmd = 'cd %s; find . -type d -print | tar -cf - -C %s -p --files-from - --no-recursion | tar -xf - -C %s' % (src, src, dst) check_output(cmd, shell=True, stderr=subprocess.STDOUT) - if os.path.isdir(src): - src = src + "/*" - cmd = 'cp -afl %s %s' % (src, dst) + cmd = 'cd %s; find . -print0 | cpio --null -pdlu %s' % (src, dst) check_output(cmd, shell=True, stderr=subprocess.STDOUT) else: copytree(src, dst) |