Skip to content

Commit

Permalink
fix(rockcraft_lpci_build): delete repo on error
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdcordeiro committed Apr 9, 2024
1 parent adcb431 commit 047adb5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rockcraft_lpci_build/rockcraft_lpci_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,9 @@ def wait_for_lp_builds(self) -> list:
logging.error("%s Continuing", error_msg)
continue

logging.error("%s Keeping the Launchpad repo alive", error_msg)
atexit.unregister(self.delete_git_repository)
# logging.error("%s Keeping the Launchpad repo alive", error_msg)
logging.error(error_msg)
# atexit.unregister(self.delete_git_repository)
raise LaunchpadBuildFailure()
else:
logging.info("%s State: %s", log_msg_prefix, ci_build.buildstate)
Expand Down

0 comments on commit 047adb5

Please sign in to comment.