summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-09-08 14:50:01 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-13 21:48:34 +0100
commit3d09687196ec8596afad6b04bc5ff7efb594eaa7 (patch)
treebeb67113aa9d66d1ee2305795c180fdadd7a00ea /bitbake/lib
parenta1c62ae8f412600fe62226b19d4e7956dcf4b84f (diff)
downloadpoky-3d09687196ec8596afad6b04bc5ff7efb594eaa7.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] (Bitbake rev: 09f5aed2edb0b8f4a6570e1041b5db66cf2d17cc) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index 66dffac223..4ed65900cd 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -77,7 +77,7 @@ class HobHandler(gobject.GObject):
77 self.generating = False 77 self.generating = False
78 self.build_queue = [] 78 self.build_queue = []
79 self.current_phase = None 79 self.current_phase = None
80 self.image_dir = None 80 self.image_dir = os.path.join(tempfile.gettempdir(), 'hob-images')
81 81
82 self.model = taskmodel 82 self.model = taskmodel
83 self.server = server 83 self.server = server
@@ -329,7 +329,6 @@ class HobHandler(gobject.GObject):
329 return self.server.runCommand(["getVariable", "DEPLOY_DIR_IMAGE"]) 329 return self.server.runCommand(["getVariable", "DEPLOY_DIR_IMAGE"])
330 330
331 def make_temp_dir(self): 331 def make_temp_dir(self):
332 self.image_dir = os.path.join(tempfile.gettempdir(), 'hob-images')
333 bb.utils.mkdirhier(self.image_dir) 332 bb.utils.mkdirhier(self.image_dir)
334 333
335 def remove_temp_dir(self): 334 def remove_temp_dir(self):