[bitbake-devel] [PATCH 09/11] bb/ui/crumbs/hobeventhandler: fix return values of *_image_output_type
Joshua Lock
josh at linux.intel.com
Fri Aug 19 01:08:23 UTC 2011
These methods are expected to return lists.
Signed-off-by: Joshua Lock <josh at linux.intel.com>
---
lib/bb/ui/crumbs/hobeventhandler.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py
index 1a4c7b5..fca4401 100644
--- a/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/lib/bb/ui/crumbs/hobeventhandler.py
@@ -310,17 +310,17 @@ class HobHandler(gobject.GObject):
def add_image_output_type(self, output_type):
if output_type not in self.image_output_types:
self.image_output_types.append(output_type)
- fstypes = " ".join(self.image_output_types)
+ fstypes = " ".join(self.image_output_types).lstrip(" ")
self.set_fstypes(fstypes)
- return fstypes
+ return self.image_output_types
def remove_image_output_type(self, output_type):
if output_type in self.image_output_types:
ind = self.image_output_types.index(output_type)
self.image_output_types.pop(ind)
- fstypes = " ".join(self.image_output_types)
+ fstypes = " ".join(self.image_output_types).lstrip(" ")
self.set_fstypes(fstypes)
- return fstypes
+ return self.image_output_types
def get_image_deploy_dir(self):
return self.server.runCommand(["getVariable", "DEPLOY_DIR_IMAGE"])
--
1.7.6
More information about the bitbake-devel
mailing list