mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Merge pull request #76 from moutonjr/pr_add_app_repo
Adding apps.json new repository paradigm on linter
This commit is contained in:
commit
41e4f50d9f
1 changed files with 4 additions and 6 deletions
|
@ -285,12 +285,10 @@ class App():
|
||||||
|
|
||||||
# YEP 1.2 Put the app in a weel known repo
|
# YEP 1.2 Put the app in a weel known repo
|
||||||
if "id" in manifest:
|
if "id" in manifest:
|
||||||
official_list_url = "https://raw.githubusercontent.com/YunoHost/apps/master/official.json"
|
app_list_url = "https://raw.githubusercontent.com/YunoHost/apps/master/apps.json"
|
||||||
official_list = json.loads(urlopen(official_list_url)['content'])
|
app_list = json.loads(urlopen(app_list_url)['content'])
|
||||||
community_list_url = "https://raw.githubusercontent.com/YunoHost/apps/master/community.json"
|
if manifest["id"] not in app_list:
|
||||||
community_list = json.loads(urlopen(community_list_url)['content'])
|
print_warning("[YEP-1.2] This app is not registered in our applications list")
|
||||||
if manifest["id"] not in official_list and manifest["id"] not in community_list:
|
|
||||||
print_warning("[YEP-1.2] This app is not registered in official or community applications")
|
|
||||||
|
|
||||||
# YEP 1.3 License
|
# YEP 1.3 License
|
||||||
def license_mentionned_in_readme(path):
|
def license_mentionned_in_readme(path):
|
||||||
|
|
Loading…
Reference in a new issue