mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
add current version in app_info
This commit is contained in:
parent
9341da10ce
commit
bd43e5cde3
1 changed files with 6 additions and 0 deletions
|
@ -362,6 +362,12 @@ def app_info(app, show_status=False, raw=False):
|
|||
|
||||
ret['upgradable'] = upgradable
|
||||
ret['change_url'] = os.path.exists(os.path.join(app_setting_path, "scripts", "change_url"))
|
||||
|
||||
with open(os.path.join(APPS_SETTING_PATH, app, 'manifest.json')) as json_manifest:
|
||||
manifest = json.load(json_manifest)
|
||||
|
||||
if 'version' in manifest:
|
||||
ret['version'] = manifest.get('version', '-')
|
||||
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue