Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo #39363

Merged
merged 1 commit into from
Apr 8, 2020
Merged

Fix typo #39363

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions build-scripts/get_all_mods.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@

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:
if not mod in mods_to_keep:
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))
for e in mod_info:
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))