]> code.ossystems Code Review - openembedded-core.git/commit
oe/path.py: copyhardlinktree: don't overwrite existing symlinks
authorIoan-Adrian Ratiu <adrian.ratiu@ni.com>
Mon, 21 Aug 2017 17:09:35 +0000 (20:09 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Aug 2017 07:47:05 +0000 (08:47 +0100)
commitc1b73fe26540c38086e259be6eb313e0826dceed
treeb51b64d4c1d1823eb6b5f3cf59a6e66859bded1d
parentd4564ee59df907d1e01a3610ac88a35f9a78c1ce
oe/path.py: copyhardlinktree: don't overwrite existing symlinks

Before GNU tar 1.24, only the archive creation command had the '-h'
argument to preserve and follow symlinks. After >= 1.24 via commit
14efeb9f956e38d7be (tar: --dereference consistency) the capability to
preserve symlinks was also added to the archive extraction command.

-h is default at archive creation but is not default at extraction,
meaning that it will replace symlinks with directories even if the
original filesystem directory tree and archive contains them.

Add -h to the copyhardlinktree extraction step so the build can
support symlinks in variables like ${DEPLOY_DIR_IPK/RPM/DEB}.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/path.py