Skip to content

Commit

Permalink
DRIVERS-3002 Update mongodl validation (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Oct 25, 2024
1 parent e6a901d commit 2c5cb1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .evergreen/mongodl.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@
},
}

# The list of valid targets that are not related to a specific Linux distro.
TARGETS_THAT_ARE_NOT_DISTROS = ['linux_i686', 'linux_x86_64', 'osx', 'macos', 'windows']


def infer_target(version: Optional[str] = None) -> str:
"""
Expand Down Expand Up @@ -410,7 +413,7 @@ def _import_json_data(self, data: 'Any') -> None:
for distro in DISTRO_ID_TO_TARGET.values():
if target in list(distro.values()):
found = True
if not found and target not in ['macos', 'windows']:
if not found and target not in TARGETS_THAT_ARE_NOT_DISTROS:
missing.add(target)
edition = dl['edition']
ar_url = dl['archive']['url']
Expand Down

0 comments on commit 2c5cb1f

Please sign in to comment.