diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-10 13:15:38 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-11 16:35:17 +0100 |
commit | e7ade6dcd646b478df79f968934a0edcb63254f7 (patch) | |
tree | 6d521124a754dd112514a0ec5eaa53527b6f3516 | |
parent | cc4158db215493ac270e27f92d977bcbe337f3db (diff) | |
download | bitbake-e7ade6dcd646b478df79f968934a0edcb63254f7.tar.gz |
bitbake: Fix -e when used with -b option
When using the -e and -b options together an expection was occuring.
This was due to incorrect initialisation and this patch adds in the
correct initialisation calls.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/cooker.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index a8edfe782..47a6edd4e 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -270,6 +270,12 @@ class BBCooker: envdata = None if buildfile: + # Parse the configuration here. We need to do it explicitly here since + # this showEnvironment() code path doesn't use the cache + self.parseConfiguration() + self.status = bb.cache.CacheData(self.caches_array) + self.handleCollections( bb.data.getVar("BBFILE_COLLECTIONS", self.configuration.data, 1) ) + fn = self.matchFile(buildfile) elif len(pkgs_to_build) == 1: self.updateCache() |