self.current_phase = None
self.bbpath_ok = False
self.bbfiles_ok = False
+ self.build_type = "image"
self.image_dir = os.path.join(tempfile.gettempdir(), 'hob-images')
self.model = taskmodel
self.server = server
+ deploy_dir = self.server.runCommand(["getVariable", "DEPLOY_DIR"])
+ self.image_out_dir = os.path.join(deploy_dir, "images")
self.image_output_types = self.server.runCommand(["getVariable", "IMAGE_FSTYPES"]).split(" ")
def run_next_command(self):
return self.image_output_types
def get_image_deploy_dir(self):
- return self.server.runCommand(["getVariable", "DEPLOY_DIR_IMAGE"])
+ return self.img_out_dir
def make_temp_dir(self):
bb.utils.mkdirhier(self.image_dir)
Colors.OK,
0))
- # Emit a generic "build-complete" signal for things wishing to
- # handle when the build is finished
- self.emit("build-complete")
# Emit the appropriate signal depending on the number of failures
if (failures >= 1):
self.emit ("build-failed")
else:
self.emit ("build-succeeded")
+ # Emit a generic "build-complete" signal for things wishing to
+ # handle when the build is finished
+ self.emit("build-complete")
elif isinstance(event, bb.command.CommandFailed):
if event.error.startswith("Exited with"):