@@ -180,17 +180,17 @@ def __init__(
180
180
def filter (self , attrs : "AttrsTypedDict" , not_bad_str_start : str = "" ) -> bool :
181
181
if super ().filter (attrs ):
182
182
return True
183
- muid = frozen_to_json_friendly (self .migrator_uid (attrs ))
184
183
for arch in self .arches :
185
184
configured_arch = (
186
185
attrs .get ("conda-forge.yml" , {}).get ("provider" , {}).get (arch )
186
+ ) or (
187
+ attrs .get ("conda-forge.yml" , {}).get ("build_platform" , {}).get (arch ) not in [None , arch ]
187
188
)
188
- if configured_arch :
189
- return muid in _sanitized_muids (
190
- attrs .get ("pr_info" , {}).get ("PRed" , []),
191
- )
192
- else :
193
- return False
189
+ if not configured_arch :
190
+ # This arch is not in provider or build_platform
191
+ return False
192
+
193
+ return True
194
194
195
195
def migrate (
196
196
self , recipe_dir : str , attrs : "AttrsTypedDict" , ** kwargs : Any
@@ -347,17 +347,17 @@ def __init__(
347
347
def filter (self , attrs : "AttrsTypedDict" , not_bad_str_start : str = "" ) -> bool :
348
348
if super ().filter (attrs ):
349
349
return True
350
- muid = frozen_to_json_friendly (self .migrator_uid (attrs ))
351
350
for arch in self .arches :
352
351
configured_arch = (
353
352
attrs .get ("conda-forge.yml" , {}).get ("provider" , {}).get (arch )
353
+ ) or (
354
+ attrs .get ("conda-forge.yml" , {}).get ("build_platform" , {}).get (arch ) not in [None , arch ]
354
355
)
355
- if configured_arch :
356
- return muid in _sanitized_muids (
357
- attrs .get ("pr_info" , {}).get ("PRed" , []),
358
- )
359
- else :
360
- return False
356
+ if not configured_arch :
357
+ # This arch is not in provider or build_platform
358
+ return False
359
+
360
+ return True
361
361
362
362
def migrate (
363
363
self , recipe_dir : str , attrs : "AttrsTypedDict" , ** kwargs : Any
0 commit comments