From 17bd3a0c6b222c731e88a8dd5897c589ffb32298 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Thu, 18 Aug 2011 17:45:16 -0700 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bitbake/lib') diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index 1a4c7b5058..fca4401420 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"]) -- cgit v1.2.3-54-g00ecf