]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/patch: Use force option when creating symlinks to patches
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Dec 2012 17:21:05 +0000 (17:21 +0000)
committerSaul Wold <sgw@linux.intel.com>
Fri, 14 Dec 2012 23:17:22 +0000 (15:17 -0800)
commit4741b90b170bc96e3a24f9c1dce871af060bc4d5
treed80ab28dae412088de0b6e64f446827eaa696beb
parent11229def87d048c51190b9bd275c73d1f8bf6007
lib/oe/patch: Use force option when creating symlinks to patches

Under the scenario where you have an existing source tree and you then
change one of the patches, maybe to be architecture or machine specific,
then rebuild, the build will fail since the symlink already exists
but should now point at a different file.

The easiest fix is to tell the system to remove and recreate the link
which is done with the force option.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/lib/oe/patch.py