diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/path.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py index 631c3b430c..06a5af2659 100644 --- a/meta/lib/oe/path.py +++ b/meta/lib/oe/path.py | |||
@@ -79,12 +79,15 @@ def copyhardlinktree(src, dst): | |||
79 | # writers try and create a directory at the same time | 79 | # writers try and create a directory at the same time |
80 | cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xf - -C %s" % (src, src, dst) | 80 | cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xf - -C %s" % (src, src, dst) |
81 | subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) | 81 | subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) |
82 | source = '' | ||
82 | if os.path.isdir(src): | 83 | if os.path.isdir(src): |
83 | import glob | 84 | import glob |
84 | if len(glob.glob('%s/.??*' % src)) > 0: | 85 | if len(glob.glob('%s/.??*' % src)) > 0: |
85 | src = src + '/.??* ' | 86 | source = '%s/.??* ' % src |
86 | src = src + '/*' | 87 | source = source + '%s/*' % src |
87 | cmd = 'cp -afl --preserve=xattr %s %s' % (src, dst) | 88 | else: |
89 | source = src | ||
90 | cmd = 'cp -afl --preserve=xattr %s %s' % (source, dst) | ||
88 | subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) | 91 | subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT) |
89 | else: | 92 | else: |
90 | copytree(src, dst) | 93 | copytree(src, dst) |