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 c77daba4de
commit 43ce4e8032

View file

@ -301,6 +301,12 @@ for app, info in apps_list.items():
print("-> Error: unsupported VCS and/or protocol") print("-> Error: unsupported VCS and/or protocol")
continue 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: try:
result_dict[manifest['id']] = { result_dict[manifest['id']] = {
'git': { 'git': {