1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

Display a warning when inconsistencies between names/ids are found

This commit is contained in:
Alexandre Aubin 2018-12-17 19:10:20 +01:00
parent 31e990ea61
commit 2e4eaacf3a

View file

@ -301,6 +301,12 @@ for app, info in apps_list.items():
print("-> Error: unsupported VCS and/or protocol")
continue
if manifest["id"] != app or manifest["id"] != repo.replace("_ynh", ""):
print("Warning: IDs different between community.json, manifest and repo name")
print(" Manifest id : %s" % manifest["id"])
print(" Name in community json : %s" % app)
print(" Repo name : %s" % repo.replace("_ynh", ""))
try:
result_dict[manifest['id']] = {
'git': {