summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-20 11:26:14 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-20 11:26:14 +0100
commitca09a6f08cc29f79f9742058d737deaef9d6d5ef (patch)
treea284096513ca9d3efe19ccf05e6a23a394e18b53
parentfac06aaf2a2b79adc2fbfc7fbd5e6526ff2b515c (diff)
downloadopenembedded-core-ca09a6f08cc29f79f9742058d737deaef9d6d5ef.tar.gz
openembedded-core-ca09a6f08cc29f79f9742058d737deaef9d6d5ef.tar.bz2
openembedded-core-ca09a6f08cc29f79f9742058d737deaef9d6d5ef.tar.xz
openembedded-core-ca09a6f08cc29f79f9742058d737deaef9d6d5ef.zip
bitbake/cooker.py: Don't init the fetcher in the worker case
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--bitbake/lib/bb/cooker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 3a2595662..dcdcb7d44 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -544,7 +544,8 @@ class BBCooker:
for var in bb.data.getVar('__BBHANDLERS', self.configuration.data) or []:
bb.event.register(var, bb.data.getVar(var, self.configuration.data))
- bb.fetch.fetcher_init(self.configuration.data)
+ if bb.data.getVar("BB_WORKERCONTEXT", self.configuration.data) is None:
+ bb.fetch.fetcher_init(self.configuration.data)
bb.event.fire(bb.event.ConfigParsed(), self.configuration.data)