All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] bitbake-layers: fix duplicated help info
@ 2013-03-06  5:36 Robert Yang
  2013-03-06  5:36 ` [PATCH 1/1] " Robert Yang
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Yang @ 2013-03-06  5:36 UTC (permalink / raw)
  To: bitbake-devel; +Cc: qingtao.cao

The following changes since commit 6663b79452bcdd95fc69e1ec853baae6c5297ab2:

  libpcap: fix description variable (2013-03-05 18:00:34 +0000)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib robert/bbl_help
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/bbl_help

Robert Yang (1):
  bitbake-layers: fix duplicated help info

 bitbake/bin/bitbake-layers |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] bitbake-layers: fix duplicated help info
  2013-03-06  5:36 [PATCH 0/1] bitbake-layers: fix duplicated help info Robert Yang
@ 2013-03-06  5:36 ` Robert Yang
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Yang @ 2013-03-06  5:36 UTC (permalink / raw)
  To: bitbake-devel; +Cc: qingtao.cao

There are two "help" lines when run bitbake help under python 2.6.6
(perhaps all python 2.6):

$ bitbake-layers help
[snip]
help
    display general help or help on a specified command
[snip]
help
    display general help or help on a specified command

This is because the cmd.py in python 2.6.6 also has a do_help() function
as our bitbake-layers, and the cmd.Cmd.get_names() doesn't consider the
overload, this has been fixed in python 2.7, use set() to remove the
duplicated would fix the problem.

[YOCTO #3428]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 bitbake/bin/bitbake-layers |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers
index b48590f..86da268 100755
--- a/bitbake/bin/bitbake-layers
+++ b/bitbake/bin/bitbake-layers
@@ -73,7 +73,7 @@ class Commands(cmd.Cmd):
         else:
             sys.stdout.write("usage: bitbake-layers <command> [arguments]\n\n")
             sys.stdout.write("Available commands:\n")
-            procnames = self.get_names()
+            procnames = list(set(self.get_names()))
             for procname in procnames:
                 if procname[:3] == 'do_':
                     sys.stdout.write("  %s\n" % procname[3:].replace('_', '-'))
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-06  5:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-06  5:36 [PATCH 0/1] bitbake-layers: fix duplicated help info Robert Yang
2013-03-06  5:36 ` [PATCH 1/1] " Robert Yang

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.