1
0
Fork 0
mirror of https://github.com/YunoHost/yunohost.git synced 2024-09-03 20:06:10 +02:00

Also check for dpkg corruption before upgrading system or app...

This commit is contained in:
Alexandre Aubin 2019-02-22 15:04:34 +01:00
parent e7241394af
commit c824f10cc2

View file

@ -524,6 +524,10 @@ def tools_upgrade(operation_logger, auth, ignore_apps=False, ignore_packages=Fal
ignore_packages -- Ignore APT packages upgrade
"""
from yunohost.utils import packages
if packages.dpkg_is_broken():
raise YunohostError(m18n.n("dpkg_is_broken"))
failure = False
# Retrieve interface