Poky Project Discussions
 help / color / mirror / Atom feed
From: Kevin Tian <kevin.tian@intel.com>
To: poky@pokylinux.org
Subject: [PATCH 1/1] utility-tasks.bbclass: show do_listtasks's output to console
Date: Fri, 26 Nov 2010 10:14:23 +0800	[thread overview]
Message-ID: <c6d829$plie0r@fmsmga001.fm.intel.com> (raw)

Use bb.msg.note to have output to console directly, or else it will be recorded
in the WORKDIR logfile instead. Previously it worked because we didn't log
python tasks

Fix [BUGID #548], [BUGID #361]

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
---
 meta/classes/utility-tasks.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/meta/classes/utility-tasks.bbclass b/meta/classes/utility-tasks.bbclass
index 205a206..b922a7f 100644
--- a/meta/classes/utility-tasks.bbclass
+++ b/meta/classes/utility-tasks.bbclass
@@ -5,9 +5,11 @@ python do_listtasks() {
 	# emit variables and shell functions
 	#bb.data.emit_env(sys.__stdout__, d)
 	# emit the metadata which isnt valid shell
+        msg = ""
 	for e in d.keys():
 		if bb.data.getVarFlag(e, 'task', d):
-			sys.__stdout__.write("%s\n" % e)
+			msg += "%s\n" % e
+        bb.msg.note(1, bb.msg.domain.Cache, "available task list:\n%s" % msg)
 }
 
 CLEANFUNCS ?= ""
-- 
1.6.0.4



                 reply	other threads:[~2010-11-26  2:40 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='c6d829$plie0r@fmsmga001.fm.intel.com' \
    --to=kevin.tian@intel.com \
    --cc=poky@pokylinux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox