mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Also forbid to app_upgrade if dpkg is broken
This commit is contained in:
parent
19bd4da104
commit
53ba867f30
1 changed files with 3 additions and 0 deletions
|
@ -564,6 +564,9 @@ def app_upgrade(auth, app=[], url=None, file=None):
|
|||
url -- Git url to fetch for upgrade
|
||||
|
||||
"""
|
||||
if packages.dpkg_is_broken():
|
||||
raise YunohostError(m18n.n("dpkg_is_broken"))
|
||||
|
||||
from yunohost.hook import hook_add, hook_remove, hook_exec, hook_callback
|
||||
|
||||
# Retrieve interface
|
||||
|
|
Loading…
Add table
Reference in a new issue