Skip to content

Commit

Permalink
Merge pull request #39363 from CleverRaven/fix-typo-2020-04-08
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
Rivet-the-Zombie authored Apr 8, 2020
2 parents be7ab20 + 2bbb767 commit cc03785
Showing 1 changed file with 5 additions and 5 deletions.
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))

0 comments on commit cc03785

Please sign in to comment.