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:
parent
e7241394af
commit
c824f10cc2
1 changed files with 4 additions and 0 deletions
|
@ -524,6 +524,10 @@ def tools_upgrade(operation_logger, auth, ignore_apps=False, ignore_packages=Fal
|
||||||
ignore_packages -- Ignore APT packages upgrade
|
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
|
failure = False
|
||||||
|
|
||||||
# Retrieve interface
|
# Retrieve interface
|
||||||
|
|
Loading…
Add table
Reference in a new issue