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
4d7398622f
commit
524489edaa
1 changed files with 6 additions and 3 deletions
|
@ -281,9 +281,12 @@ def tools_changelog():
|
||||||
Show Changelog
|
Show Changelog
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
if os.path.isfile('/tmp/yunohost/update_status'):
|
||||||
with open('/tmp/yunohost/changelog', 'r') as f:
|
with open('/tmp/yunohost/changelog', 'r') as f:
|
||||||
read_data = f.read()
|
read_data = f.read()
|
||||||
return { "Changelog" : read_data.splitlines() }
|
return { "Changelog" : read_data.splitlines() }
|
||||||
|
else:
|
||||||
|
raise YunoHostError(17, _("Launch update before upgrade"))
|
||||||
|
|
||||||
def tools_upgrade():
|
def tools_upgrade():
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue