mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Update yunohost_tools.py
This commit is contained in:
parent
34e03c437c
commit
f40f386add
1 changed files with 13 additions and 0 deletions
|
@ -311,3 +311,16 @@ def tools_upgrade():
|
||||||
win_msg( _("Upgrade in progress"))
|
win_msg( _("Upgrade in progress"))
|
||||||
else:
|
else:
|
||||||
raise YunoHostError(17, _("Launch update before upgrade"))
|
raise YunoHostError(17, _("Launch update before upgrade"))
|
||||||
|
|
||||||
|
|
||||||
|
def tools_upgradelog():
|
||||||
|
"""
|
||||||
|
Show upgrade log
|
||||||
|
|
||||||
|
"""
|
||||||
|
if os.path.isfile('/tmp/yunohost/upgrade.run'):
|
||||||
|
win_msg( _("Upgrade in progress"))
|
||||||
|
else:
|
||||||
|
with open('/tmp/yunohost/update_log', 'r') as f:
|
||||||
|
read_data = f.read()
|
||||||
|
return { "DPKG LOG" : read_data.splitlines() }
|
||||||
|
|
Loading…
Reference in a new issue