aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-09-08 14:50:01 -0700
committerJoshua Lock <josh@linux.intel.com>2011-09-13 08:29:57 -0700
commit09f5aed2edb0b8f4a6570e1041b5db66cf2d17cc (patch)
tree2883443b18e217a8dde8999670cdba802b633958 /lib
parent459addf13721a6847406f215650fa1882fb83ea9 (diff)
downloadbitbake-09f5aed2edb0b8f4a6570e1041b5db66cf2d17cc.tar.gz
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] Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/ui/crumbs/hobeventhandler.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py
index 66dffac22..4ed65900c 100644
--- a/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/lib/bb/ui/crumbs/hobeventhandler.py
@@ -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):