mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Check dpkg status asap in app_install
This commit is contained in:
parent
c824f10cc2
commit
dcf2ca8b55
1 changed files with 3 additions and 3 deletions
|
@ -708,6 +708,9 @@ def app_install(operation_logger, auth, app, label=None, args=None, no_remove_on
|
|||
no_remove_on_failure -- Debug option to avoid removing the app on a failed installation
|
||||
force -- Do not ask for confirmation when installing experimental / low-quality apps
|
||||
"""
|
||||
if packages.dpkg_is_broken():
|
||||
raise YunohostError(m18n.n("dpkg_is_broken"))
|
||||
|
||||
from yunohost.hook import hook_add, hook_remove, hook_exec, hook_callback
|
||||
from yunohost.log import OperationLogger
|
||||
|
||||
|
@ -725,9 +728,6 @@ def app_install(operation_logger, auth, app, label=None, args=None, no_remove_on
|
|||
},
|
||||
}
|
||||
|
||||
if packages.dpkg_is_broken():
|
||||
raise YunohostError(m18n.n("dpkg_is_broken"))
|
||||
|
||||
def confirm_install(confirm):
|
||||
|
||||
# Ignore if there's nothing for confirm (good quality app), if --force is used
|
||||
|
|
Loading…
Add table
Reference in a new issue