diff options
Diffstat (limited to 'bitbake/lib/bb/ui/hob.py')
-rw-r--r-- | bitbake/lib/bb/ui/hob.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py index 919c06e151..b5c2342ce2 100644 --- a/bitbake/lib/bb/ui/hob.py +++ b/bitbake/lib/bb/ui/hob.py | |||
@@ -114,6 +114,8 @@ class MainWindow (gtk.Window): | |||
114 | # whilst the busy cursor is set | 114 | # whilst the busy cursor is set |
115 | self.set_busy_cursor(False) | 115 | self.set_busy_cursor(False) |
116 | 116 | ||
117 | self.handler.remove_temp_dir() | ||
118 | |||
117 | gtk.main_quit() | 119 | gtk.main_quit() |
118 | 120 | ||
119 | """ | 121 | """ |
@@ -418,13 +420,10 @@ class MainWindow (gtk.Window): | |||
418 | rep.base_image = "empty" | 420 | rep.base_image = "empty" |
419 | 421 | ||
420 | if build_image: | 422 | if build_image: |
421 | import tempfile, datetime | 423 | self.handler.make_temp_dir() |
422 | 424 | recipepath = self.handler.get_temp_recipe_path(rep.base_image) | |
423 | image_name = "hob-%s-variant-%s" % (rep.base_image, datetime.date.today().isoformat()) | 425 | image_name = recipepath.rstrip(".bb") |
424 | image_file = "%s.bb" % (image_name) | 426 | path, sep, image_name = image_name.rpartition("/") |
425 | image_dir = os.path.join(tempfile.gettempdir(), 'hob-images') | ||
426 | bb.utils.mkdirhier(image_dir) | ||
427 | recipepath = os.path.join(image_dir, image_file) | ||
428 | 427 | ||
429 | rep.writeRecipe(recipepath, self.model) | 428 | rep.writeRecipe(recipepath, self.model) |
430 | # In the case where we saved the file for the purpose of building | 429 | # In the case where we saved the file for the purpose of building |
@@ -433,7 +432,7 @@ class MainWindow (gtk.Window): | |||
433 | if not self.save_path: | 432 | if not self.save_path: |
434 | self.files_to_clean.append(recipepath) | 433 | self.files_to_clean.append(recipepath) |
435 | 434 | ||
436 | self.handler.build_image(image_name, image_dir, self.configurator) | 435 | self.handler.build_image(image_name, self.configurator) |
437 | else: | 436 | else: |
438 | self.handler.build_packages(rep.allpkgs.split(" ")) | 437 | self.handler.build_packages(rep.allpkgs.split(" ")) |
439 | 438 | ||