diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-14 17:21:05 +0000 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2012-12-14 15:17:22 -0800 |
commit | 4741b90b170bc96e3a24f9c1dce871af060bc4d5 (patch) | |
tree | d80ab28dae412088de0b6e64f446827eaa696beb /meta/lib/oe | |
parent | 11229def87d048c51190b9bd275c73d1f8bf6007 (diff) | |
download | openembedded-core-4741b90b170bc96e3a24f9c1dce871af060bc4d5.tar.gz openembedded-core-4741b90b170bc96e3a24f9c1dce871af060bc4d5.tar.bz2 openembedded-core-4741b90b170bc96e3a24f9c1dce871af060bc4d5.zip |
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>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/patch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index bc86bb5391..7ab74fae8a 100644 --- a/meta/lib/oe/patch.py +++ b/meta/lib/oe/patch.py @@ -278,7 +278,7 @@ class QuiltTree(PatchSet): if not self.initialized: self.InitFromDir() PatchSet.Import(self, patch, force) - oe.path.symlink(patch["file"], self._quiltpatchpath(patch["file"])) + oe.path.symlink(patch["file"], self._quiltpatchpath(patch["file"]), force=True) f = open(os.path.join(self.dir, "patches","series"), "a"); f.write(os.path.basename(patch["file"]) + " -p" + patch["strippath"]+"\n") f.close() |