summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index a08c14bbdc..df9a0cab03 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -165,13 +165,13 @@ class BBCooker:
165 165
166 def setFeatures(self, features): 166 def setFeatures(self, features):
167 # we only accept a new feature set if we're in state initial, so we can reset without problems 167 # we only accept a new feature set if we're in state initial, so we can reset without problems
168 if self.state != state.initial: 168 if self.state != state.initial and self.state != state.error:
169 raise Exception("Illegal state for feature set change") 169 raise Exception("Illegal state for feature set change")
170 original_featureset = list(self.featureset) 170 original_featureset = list(self.featureset)
171 for feature in features: 171 for feature in features:
172 self.featureset.setFeature(feature) 172 self.featureset.setFeature(feature)
173 bb.debug(1, "Features set %s (was %s)" % (original_featureset, list(self.featureset))) 173 bb.debug(1, "Features set %s (was %s)" % (original_featureset, list(self.featureset)))
174 if (original_featureset != list(self.featureset)): 174 if (original_featureset != list(self.featureset)) and self.state != state.error:
175 self.reset() 175 self.reset()
176 176
177 def initConfigurationData(self): 177 def initConfigurationData(self):