]> code.ossystems Code Review - openembedded-core.git/commit
oe.path: preserve xattr in copytree() and copyhardlinktree()
authorJoshua Lock <joshua.g.lock@intel.com>
Thu, 1 Sep 2016 16:26:41 +0000 (17:26 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Sep 2016 08:58:31 +0000 (09:58 +0100)
commite591d69103a40ec4f76d1132a6039d9cb1555103
treeae0b55456e185703ce68b7caa8530d9b4c113694
parenta408f8310d9426db4439cf8db0cf49f9bfe90b3b
oe.path: preserve xattr in copytree() and copyhardlinktree()

Pass appropriate options to tar invocations in copytree() and
copyhardlinktree() to ensure that any extended attributes on the files
are preserved during the copy.

We have to drop the use cpio in "Copy-pass" mode in copyhardlinktree()
because cpio doesn't support extended attributes on files. Instead we
revert back to using cp with different patterns depending on whether
or not the directory contains dot files.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/path.py