summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-08-18 17:45:16 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-23 10:00:34 -0700
commit17bd3a0c6b222c731e88a8dd5897c589ffb32298 (patch)
tree63204917ebf0e5dd334c0aaac948e82e2ccb4112 /bitbake
parenta17e6c4a2ebb3af6f8c7201b946304fd06602c24 (diff)
downloadast2050-yocto-poky-17bd3a0c6b222c731e88a8dd5897c589ffb32298.zip
ast2050-yocto-poky-17bd3a0c6b222c731e88a8dd5897c589ffb32298.tar.gz
bb/ui/crumbs/hobeventhandler: fix return values of *_image_output_type
These methods are expected to return lists. (Bitbake rev: 4e101de9034c20dfda0bb851e84f4315335620f6) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index 1a4c7b5..fca4401 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/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"])
OpenPOWER on IntegriCloud