ui/crumbs/hobeventhandler: fix test for BBFILES

It seems we have a race whereby the image_dir variable may not be set
before it's tested for, since the variable is always the same set it in the
initialiser.

Partially addresses [YOCTO #1468]

(Bitbake rev: 09f5aed2edb0b8f4a6570e1041b5db66cf2d17cc)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joshua Lock 2011-09-08 14:50:01 -07:00 committed by Richard Purdie
parent a1c62ae8f4
commit 3d09687196
1 changed files with 1 additions and 2 deletions

View File

@ -77,7 +77,7 @@ class HobHandler(gobject.GObject):
self.generating = False
self.build_queue = []
self.current_phase = None
self.image_dir = None
self.image_dir = os.path.join(tempfile.gettempdir(), 'hob-images')
self.model = taskmodel
self.server = server
@ -329,7 +329,6 @@ class HobHandler(gobject.GObject):
return self.server.runCommand(["getVariable", "DEPLOY_DIR_IMAGE"])
def make_temp_dir(self):
self.image_dir = os.path.join(tempfile.gettempdir(), 'hob-images')
bb.utils.mkdirhier(self.image_dir)
def remove_temp_dir(self):