style
This commit is contained in:
parent
11572c0caf
commit
1a19c09c55
@ -2226,8 +2226,11 @@ def complete_task(task) -> None:
|
||||
keep_prefix = install_args.get("keep_prefix")
|
||||
action = self._install_action(task)
|
||||
try:
|
||||
self._complete_task(task, install_status)
|
||||
active_tasks.remove(task)
|
||||
try:
|
||||
self._complete_task(task, install_status)
|
||||
finally:
|
||||
# Remove task from active_tasks on error or success
|
||||
active_tasks.remove(task)
|
||||
|
||||
# If we installed then we should keep the prefix
|
||||
stop_before_phase = getattr(pkg, "stop_before_phase", None)
|
||||
|
@ -984,6 +984,7 @@ class MyBuildException(Exception):
|
||||
|
||||
_old_complete_task = None
|
||||
|
||||
|
||||
def _install_fail_my_build_exception(installer, task, install_status, **kwargs):
|
||||
if task.pkg.name == "pkg-a":
|
||||
print("Raising MyBuildException for pkg-a")
|
||||
|
Loading…
Reference in New Issue
Block a user