mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Allow old custom applications compatibility
This commit is contained in:
parent
141f2ae8f5
commit
b2ffe65da8
2 changed files with 2 additions and 2 deletions
|
@ -311,7 +311,7 @@ def app_upgrade(auth, app=[], url=None, file=None):
|
||||||
manifest = _extract_app_from_file(file)
|
manifest = _extract_app_from_file(file)
|
||||||
elif url:
|
elif url:
|
||||||
manifest = _fetch_app_from_git(url)
|
manifest = _fetch_app_from_git(url)
|
||||||
elif 'lastUpdate' not in new_app_dict or 'git' not in new_app_dict:
|
elif new_app_dict is None or 'lastUpdate' not in new_app_dict or 'git' not in new_app_dict:
|
||||||
msignals.display(m18n.n('custom_app_url_required', app_id), 'warning')
|
msignals.display(m18n.n('custom_app_url_required', app_id), 'warning')
|
||||||
continue
|
continue
|
||||||
elif (new_app_dict['lastUpdate'] > current_app_dict['lastUpdate']) \
|
elif (new_app_dict['lastUpdate'] > current_app_dict['lastUpdate']) \
|
||||||
|
|
|
@ -380,7 +380,7 @@ def tools_update(ignore_apps=False, ignore_packages=False):
|
||||||
new_app_dict = app_info(original_app_id, raw=True)
|
new_app_dict = app_info(original_app_id, raw=True)
|
||||||
|
|
||||||
# Custom app
|
# Custom app
|
||||||
if 'lastUpdate' not in new_app_dict or 'git' not in new_app_dict:
|
if new_app_dict is None or 'lastUpdate' not in new_app_dict or 'git' not in new_app_dict:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if (new_app_dict['lastUpdate'] > current_app_dict['lastUpdate']) \
|
if (new_app_dict['lastUpdate'] > current_app_dict['lastUpdate']) \
|
||||||
|
|
Loading…
Add table
Reference in a new issue