From 2bbb767610351697f4ff2b7eff677e322a4f9faa Mon Sep 17 00:00:00 2001 From: ZhilkinSerg Date: Wed, 8 Apr 2020 16:16:29 +0300 Subject: [PATCH] Fix typo --- build-scripts/get_all_mods.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build-scripts/get_all_mods.py b/build-scripts/get_all_mods.py index 060376a7fcfb3..343c14fdeb227 100755 --- a/build-scripts/get_all_mods.py +++ b/build-scripts/get_all_mods.py @@ -12,7 +12,7 @@ def add_mods(mods): for mod in mods: - if not mod in all_mod_dependecies: + if not mod in all_mod_dependencies: # Either an invalid mod id, or blacklisted. return False for mod in mods: @@ -20,7 +20,7 @@ def add_mods(mods): mods_to_keep.append(mod) return True -all_mod_dependecies = {} +all_mod_dependencies = {} for info in glob.glob('data/mods/*/modinfo.json'): mod_info = json.load(open(info)) @@ -28,11 +28,11 @@ def add_mods(mods): if e["type"] == "MOD_INFO": ident = e["ident"] if not ident in blacklist: - all_mod_dependecies[ident] = e.get("dependencies", []) + all_mod_dependencies[ident] = e.get("dependencies", []) -for mod in all_mod_dependecies: +for mod in all_mod_dependencies: if not mod in mods_to_keep: - if add_mods(all_mod_dependecies[mod]): + if add_mods(all_mod_dependencies[mod]): mods_to_keep.append(mod) print(','.join(mods_to_keep))