diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-08-18 17:45:16 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-23 09:59:50 -0700 |
commit | 4e101de9034c20dfda0bb851e84f4315335620f6 (patch) | |
tree | c1a3a133aa3e83a77134dfd9df6698eae6798880 | |
parent | c969857c7f5963098e6584803eafb4e2be0eea46 (diff) | |
download | bitbake-4e101de9034c20dfda0bb851e84f4315335620f6.tar.gz |
bb/ui/crumbs/hobeventhandler: fix return values of *_image_output_type
These methods are expected to return lists.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r-- | 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 1a4c7b505..fca440142 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"]) |