Skip to content

Commit

Permalink
change field name to platform_allowlist
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Apr 18, 2023
1 parent c846bf3 commit f519aea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conda_forge_tick/migrators/migration_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,14 @@ def filter(self, attrs: "AttrsTypedDict", not_bad_str_start: str = "") -> bool:
Calls up the MRO until Migrator.filter, see docstring there (./core.py).
"""
migrator_payload = self.loaded_yaml.get("__migrator", {})
platform_restriction = migrator_payload.get("platform_restriction", [])
platform_allowlist = migrator_payload.get("platform_allowlist", [])
wait_for_migrators = migrator_payload.get("wait_for_migrators", [])

platform_filtered = False
if platform_restriction:
if platform_allowlist:
# filter out nodes where the intersection between
# attrs.platforms and platform_restriction is empty
intersection = set(attrs.get("platforms", {})) & set(platform_restriction)
# attrs.platforms and platform_allowlist is empty
intersection = set(attrs.get("platforms", {})) & set(platform_allowlist)
platform_filtered = not bool(intersection)

need_to_wait = False
Expand Down

0 comments on commit f519aea

Please sign in to comment.