diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2013-12-27 01:51:51 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-02 13:07:49 +0000 |
commit | 2bc99b9dfa532430a13c39fca4e5ef3a2206b3b8 (patch) | |
tree | ef80bda741004d5b93850e488c9bee5fbe213c4e /lib/bb/fetch2/__init__.py | |
parent | fb2dc84875eb477661f421b21bc404d4805ce379 (diff) | |
download | openembedded-core-contrib-2bc99b9dfa532430a13c39fca4e5ef3a2206b3b8.tar.gz |
bitbake: fetcher2: clean(): remove the .patch.done
There was a problem:
$ bitbake xf86-video-omapfb -cfetch && bitbake xf86-video-omapfb -ccleanall
Everything should be removed, but the
0006-omapfb-port-to-new-xserver-video-API.patch.done still exists in the
DL_DIR, this is because the clean() in the fetch2/__init__.py skips
removing the local file, so that it will skip removing the .done.
The local file (file://) isn't needed to be removed since it is not
downloaded into DL_DIR, but the .done should be removed, this patch will
remove the .done, and it doesn't remove anything else since the clean()
in local.py does nothing.
[YOCTO #5687]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/__init__.py')
-rw-r--r-- | lib/bb/fetch2/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 439a44a4af..c584f48ad2 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -1497,7 +1497,7 @@ class Fetch(object): ud = self.ud[url] ud.setup_localpath(self.d) - if not ud.localfile or self.localpath is None: + if not ud.localfile and ud.localpath is None: continue if ud.lockfile: |