|
@@ -81,7 +81,7 @@ def copytree(src, dst):
|
|
|
# This way we also preserve hardlinks between files in the tree.
|
|
|
|
|
|
bb.utils.mkdirhier(dst)
|
|
|
- cmd = 'tar -cf - -C %s -ps . | tar -xf - -C %s' % (src, dst)
|
|
|
+ cmd = 'tar -cf - -C %s -p . | tar -xf - -C %s' % (src, dst)
|
|
|
check_output(cmd, shell=True, stderr=subprocess.STDOUT)
|
|
|
|
|
|
def copyhardlinktree(src, dst):
|
|
@@ -93,7 +93,7 @@ def copyhardlinktree(src, dst):
|
|
|
if (os.stat(src).st_dev == os.stat(dst).st_dev):
|
|
|
# Need to copy directories only with tar first since cp will error if two
|
|
|
# writers try and create a directory at the same time
|
|
|
- cmd = 'cd %s; find . -type d -print | tar -cf - -C %s -ps --files-from - | tar -xf - -C %s' % (src, src, dst)
|
|
|
+ cmd = 'cd %s; find . -type d -print | tar -cf - -C %s -p --files-from - | tar -xf - -C %s' % (src, src, dst)
|
|
|
check_output(cmd, shell=True, stderr=subprocess.STDOUT)
|
|
|
if os.path.isdir(src):
|
|
|
src = src + "/*"
|