hob: only add new layer's to the UI
authorJoshua Lock <josh@linux.intel.com>
Fri, 22 Jul 2011 18:32:27 +0000 (11:32 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Jul 2011 11:54:15 +0000 (12:54 +0100)
commit3eec64a52b6daebcfcde4cfe31bad8fcb2d080a8
tree5c2b2bf6bb85de250a419192ef451bf557c45b68
parent605180e76f4dab335465a0711ce43ad0ddf1082d
hob: only add new layer's to the UI

If a user added the same layer more than once the underlying bblayers.conf
file would not have multiple entries but the UI would show an entry for
the layer for each time it was added. This patch changes the Configurator
to return None values if the layer wasn't added to bblayers.conf and the
LayerEditor to only update the UI if non-None values are returned.

Fixes [YOCTO #1275]

(Bitbake rev: 9c59baa4da3c863ebc412a56ffd8dbd7a8ffeb60)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/crumbs/configurator.py
bitbake/lib/bb/ui/crumbs/layereditor.py