diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-09-08 14:50:01 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-13 21:48:34 +0100 |
commit | 3d09687196ec8596afad6b04bc5ff7efb594eaa7 (patch) | |
tree | beb67113aa9d66d1ee2305795c180fdadd7a00ea /bitbake | |
parent | a1c62ae8f412600fe62226b19d4e7956dcf4b84f (diff) | |
download | ast2050-yocto-poky-3d09687196ec8596afad6b04bc5ff7efb594eaa7.zip ast2050-yocto-poky-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')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 3 |
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 66dffac..4ed6590 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): 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): |