Skip to content

Commit

Permalink
Merge pull request #74476 from anothersimulacrum/hack-cure-ci
Browse files Browse the repository at this point in the history
Allow mod exclusions in get_all_mods.py
  • Loading branch information
dseguin authored Jun 12, 2024
2 parents 1f74d2a + f19d909 commit e46b0c7
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions build-scripts/get_all_mods.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,20 @@

mods_this_time = []

exclusions = [
# #74443 - incompatibility between mindovermatter and aftershock due to bug
('mindovermatter', 'aftershock')
]


def compatible_with(mod, existing_mods):
if mod in total_conversions and total_conversions & set(existing_mods):
return False
for entry in exclusions:
if entry[0] == mod and entry[1] in existing_mods:
return False
if entry[1] == mod and entry[0] in existing_mods:
return False
return True


Expand All @@ -23,11 +33,14 @@ def add_mods(mods):
# Either an invalid mod id, or blacklisted.
return False
for mod in mods:
if mod not in mods_this_time and compatible_with(mod, mods_this_time):
if add_mods(all_mod_dependencies[mod]):
mods_this_time.append(mod)
else:
return False
if mod in mods_this_time:
continue
if not compatible_with(mod, mods_this_time):
return False
if add_mods(all_mod_dependencies[mod]):
mods_this_time.append(mod)
else:
return False
return True


Expand Down

0 comments on commit e46b0c7

Please sign in to comment.