summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-10 13:15:38 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-11 19:07:59 +0100
commit1dd10a540596c6fb89344abca6bbca0b3fb01b53 (patch)
tree9ab66322f95f793835cc48440c310b6954b064af /bitbake/lib/bb/cooker.py
parenteeaa87f3ec72dd92847ae39bcacc8afc63d17985 (diff)
downloadpoky-1dd10a540596c6fb89344abca6bbca0b3fb01b53.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. (Bitbake rev: e7ade6dcd646b478df79f968934a0edcb63254f7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 46b42e6a69..490828d2a6 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -276,6 +276,12 @@ class BBCooker:
276 envdata = None 276 envdata = None
277 277
278 if buildfile: 278 if buildfile:
279 # Parse the configuration here. We need to do it explicitly here since
280 # this showEnvironment() code path doesn't use the cache
281 self.parseConfiguration()
282 self.status = bb.cache.CacheData(self.caches_array)
283 self.handleCollections( bb.data.getVar("BBFILE_COLLECTIONS", self.configuration.data, 1) )
284
279 fn = self.matchFile(buildfile) 285 fn = self.matchFile(buildfile)
280 elif len(pkgs_to_build) == 1: 286 elif len(pkgs_to_build) == 1:
281 self.updateCache() 287 self.updateCache()