mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
🎨 Format Python code with Black
This commit is contained in:
parent
e3bebeac98
commit
c9b76fde35
2 changed files with 9 additions and 2 deletions
|
@ -770,7 +770,10 @@ def app_upgrade(
|
||||||
from yunohost.utils.resources import AppResourceManager
|
from yunohost.utils.resources import AppResourceManager
|
||||||
|
|
||||||
AppResourceManager(
|
AppResourceManager(
|
||||||
app_instance_name, wanted=manifest, current=app_dict["manifest"], workdir=extracted_app_folder
|
app_instance_name,
|
||||||
|
wanted=manifest,
|
||||||
|
current=app_dict["manifest"],
|
||||||
|
workdir=extracted_app_folder,
|
||||||
).apply(
|
).apply(
|
||||||
rollback_and_raise_exception_if_failure=True,
|
rollback_and_raise_exception_if_failure=True,
|
||||||
operation_logger=operation_logger,
|
operation_logger=operation_logger,
|
||||||
|
|
|
@ -257,7 +257,11 @@ class AppResource:
|
||||||
)
|
)
|
||||||
from yunohost.hook import hook_exec_with_script_debug_if_failure
|
from yunohost.hook import hook_exec_with_script_debug_if_failure
|
||||||
|
|
||||||
workdir = self.manager.workdir if self.manager and self.manager.workdir else _make_tmp_workdir_for_app(app=self.app)
|
workdir = (
|
||||||
|
self.manager.workdir
|
||||||
|
if self.manager and self.manager.workdir
|
||||||
|
else _make_tmp_workdir_for_app(app=self.app)
|
||||||
|
)
|
||||||
|
|
||||||
env_ = _make_environment_for_app_script(
|
env_ = _make_environment_for_app_script(
|
||||||
self.app,
|
self.app,
|
||||||
|
|
Loading…
Add table
Reference in a new issue