mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Adding dpkg checks after removal of an application
This commit is contained in:
parent
53ba867f30
commit
e7241394af
1 changed files with 6 additions and 0 deletions
|
@ -880,6 +880,9 @@ def app_install(operation_logger, auth, app, label=None, args=None, no_remove_on
|
||||||
|
|
||||||
app_ssowatconf(auth)
|
app_ssowatconf(auth)
|
||||||
|
|
||||||
|
if packages.dpkg_is_broken():
|
||||||
|
logger.error(m18n.n("this_action_broke_dpkg"))
|
||||||
|
|
||||||
if install_retcode == -1:
|
if install_retcode == -1:
|
||||||
msg = m18n.n('operation_interrupted') + " " + error_msg
|
msg = m18n.n('operation_interrupted') + " " + error_msg
|
||||||
raise YunohostError(msg, raw_msg=True)
|
raise YunohostError(msg, raw_msg=True)
|
||||||
|
@ -962,6 +965,9 @@ def app_remove(operation_logger, auth, app):
|
||||||
hook_remove(app)
|
hook_remove(app)
|
||||||
app_ssowatconf(auth)
|
app_ssowatconf(auth)
|
||||||
|
|
||||||
|
if packages.dpkg_is_broken():
|
||||||
|
raise YunohostError(m18n.n("this_action_broke_dpkg"))
|
||||||
|
|
||||||
|
|
||||||
def app_addaccess(auth, apps, users=[]):
|
def app_addaccess(auth, apps, users=[]):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue