bitbake: bitbake-layers: fix duplicated help info
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 6 Mar 2013 05:36:23 +0000 (13:36 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 10 Mar 2013 04:36:52 +0000 (04:36 +0000)
commit61c1246aa1840256c94d19b3230b447ef091aded
treedaa7f6aab044feb87a917710e160e7a497da8f0c
parent6606aed9cbf617cf39225d26f7390db4c00402b1
bitbake: bitbake-layers: fix duplicated help info

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]

(Bitbake rev: 324ed96e28ec31cff8cef1824d20d40f9a5d46ad)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/bin/bitbake-layers