Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] siteconfig: Unbreak after sstate changes some time ago
@ 2014-04-04 17:12 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2014-04-04 17:12 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/siteconfig.bbclass b/meta/classes/siteconfig.bbclass
index 3701b7c..9a4d03b 100644
--- a/meta/classes/siteconfig.bbclass
+++ b/meta/classes/siteconfig.bbclass
@@ -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")




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-04 17:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-04 17:12 [PATCH] siteconfig: Unbreak after sstate changes some time ago Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox