Update yunohost_tools.py

This commit is contained in:
abeudin 2014-03-13 12:04:37 +01:00
parent 4d7398622f
commit 524489edaa

View file

@ -281,9 +281,12 @@ def tools_changelog():
Show Changelog Show Changelog
""" """
with open('/tmp/yunohost/changelog', 'r') as f: if os.path.isfile('/tmp/yunohost/update_status'):
read_data = f.read() with open('/tmp/yunohost/changelog', 'r') as f:
return { "Changelog" : read_data.splitlines() } read_data = f.read()
return { "Changelog" : read_data.splitlines() }
else:
raise YunoHostError(17, _("Launch update before upgrade"))
def tools_upgrade(): def tools_upgrade():
""" """