Use --no-preserve=ownership when copying

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2019-09-17 21:36:42 +00:00
parent 2f38497513
commit 093ef8d22c
2 changed files with 2 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ def copy_from_sysroots(pathnames, sysroots, mirrors, installdest):
else:
destdir = oe.path.join(installdest, os.path.dirname(path))
bb.utils.mkdirhier(destdir)
subprocess.check_call(['cp', '-pPR'] + list(files) + [destdir + '/'])
subprocess.check_call(['cp', '-PR', '--preserve=mode,timestamps', '--no-preserve=ownership'] + list(files) + [destdir + '/'])
bb.note('Copied `{}` to `{}/`'.format(', '.join(files), destdir))
def expand_paths(pathnames, mirrors):