All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: openembedded-core <openembedded-core@lists.openembedded.org>
Subject: base.bbclass: Minor cleanup
Date: Thu, 06 Oct 2011 15:17:34 +0100	[thread overview]
Message-ID: <1317910664.6398.83.camel@ted> (raw)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 57f1c3f..7cd6efa 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -202,7 +202,6 @@ def preferred_ml_updates(d):
 
 addhandler base_eventhandler
 python base_eventhandler() {
-	from bb import note, error, data
 	from bb.event import getName
 
 	name = getName(e)
@@ -212,7 +211,7 @@ python base_eventhandler() {
 		statusvars = ['BB_VERSION', 'TARGET_ARCH', 'TARGET_OS', 'MACHINE', 'DISTRO', 'DISTRO_VERSION','TUNE_FEATURES', 'TARGET_FPU']
 		statuslines = ["%-17s = \"%s\"" % (i, bb.data.getVar(i, e.data, 1) or '') for i in statusvars]
 
-		layers = (data.getVar("BBLAYERS", e.data, 1) or "").split()
+		layers = (bb.data.getVar("BBLAYERS", e.data, 1) or "").split()
 		layers_branch_rev = ["%-17s = \"%s:%s\"" % (os.path.basename(i), \
 			base_get_metadata_git_branch(i, None).strip(), \
 			base_get_metadata_git_revision(i, None)) \
@@ -248,9 +247,6 @@ python base_eventhandler() {
                 generate_git_config(e)
                 pkgarch_mapping(e.data)
                 preferred_ml_updates(e.data)
-
-	if not data in e.__dict__:
-		return
 }
 
 addtask configure after do_patch





                 reply	other threads:[~2011-10-06 14:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1317910664.6398.83.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.