Merge pull request #109 from YunoHost/use_official_app_list

[fix] Use official.json app list.
This commit is contained in:
Le Kload 2015-10-13 10:51:26 +02:00
commit 91354a28a7
2 changed files with 4 additions and 4 deletions

View file

@ -318,10 +318,10 @@ app:
arguments: arguments:
-u: -u:
full: --url full: --url
help: URL of remote JSON list (default http://fapp.yunohost.org/app/list/raw) help: URL of remote JSON list (default https://yunohost.org/official.json)
-n: -n:
full: --name full: --name
help: Name of the list (default fapp) help: Name of the list (default yunohost)
extra: extra:
pattern: &pattern_listname pattern: &pattern_listname
- !!str ^[a-z0-9_]+$ - !!str ^[a-z0-9_]+$

View file

@ -72,7 +72,7 @@ def app_fetchlist(url=None, name=None):
Keyword argument: Keyword argument:
name -- Name of the list (default yunohost) name -- Name of the list (default yunohost)
url -- URL of remote JSON list (default https://yunohost.org/list.json) url -- URL of remote JSON list (default https://yunohost.org/official.json)
""" """
# Create app path if not exists # Create app path if not exists
@ -80,7 +80,7 @@ def app_fetchlist(url=None, name=None):
except OSError: os.makedirs(repo_path) except OSError: os.makedirs(repo_path)
if url is None: if url is None:
url = 'https://yunohost.org/list.json' url = 'https://yunohost.org/official.json'
name = 'yunohost' name = 'yunohost'
else: else:
if name is None: if name is None: