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