]> code.ossystems Code Review - openembedded-core.git/commit
classes/externalsrc: fix symlinking if symlink exists pointing to another path
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 2 Mar 2016 10:44:19 +0000 (23:44 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 2 Mar 2016 22:39:07 +0000 (22:39 +0000)
commitcb8f064e48c24dcb1a15a32cef3399f35e549bdc
treebc932062e0f4a48dedeacbfb38fed1ca3f62f769
parent914b0a99997d8c69eafcb34dd982f46540eed882
classes/externalsrc: fix symlinking if symlink exists pointing to another path

If the oe-workdir / oe-logs symlink exists and points to a different
path then the symlink needs to be removed before calling os.symlink() or
it'll fail.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/externalsrc.bbclass