Skip to contentSkip to conversation

siteconfig: Unbreak after sstate changes some time ago

PATCH New Richard Purdie 1 participant 1 message Apr 4, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 siteconfig: Unbreak after sstate changes some time ago

Some time ago, the sstate name field was dropped. This code wouldn't have worked since then. Makes me wonder if we really need it.

Anyhow, my last patch properly breaks it. This fixes the naming so it works as designed again.

---

meta/classes/siteconfig.bbclass +1 -1
index 3701b7c..9a4d03b 100644
@@ -1,6 +1,6 @@
 python siteconfig_do_siteconfig () {
 	shared_state = sstate_state_fromvars(d)
-	if shared_state['name'] != 'populate-sysroot':
+	if shared_state['task'] != 'populate_sysroot':
 		return
 	if not os.path.isdir(os.path.join(d.getVar('FILE_DIRNAME', True), 'site_config')):
 		bb.debug(1, "No site_config directory, skipping do_siteconfig")