Skip to content
Snippets Groups Projects
Commit 8facfdde authored by Filippo Cremonese's avatar Filippo Cremonese
Browse files

More robust interrupted configure handling

parent cb9a3155
No related branches found
No related tags found
No related merge requests found
......@@ -14,8 +14,12 @@ class ConfigureAction(Action):
return os.path.exists(self._configure_successful_path)
def _run(self, args):
if os.path.exists(self.environment["BUILD_DIR"]):
logger.warning("Build directory exists, running configure script anyway")
if os.path.exists(self._configure_successful_path):
logger.warning("This component was already successfully configured, rerunning configure script")
os.remove(self._configure_successful_path)
elif os.path.exists(self.environment["BUILD_DIR"]):
logger.warning("Previous configure probably failed, running configure script in a dirty environment")
logger.warning(f"You might want to delete the build directory (use `orchestra clean`)")
result = run_script(self.script, quiet=args.quiet, environment=self.environment)
if result.returncode == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment