From a791da17d56ab3022674007f27dd2f757f2a0591 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Fri, 22 Sep 2023 22:55:16 -0500 Subject: [PATCH] Fix typos --- conda_build/metadata.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conda_build/metadata.py b/conda_build/metadata.py index 90f0329c4f..a0e7b11060 100644 --- a/conda_build/metadata.py +++ b/conda_build/metadata.py @@ -133,13 +133,13 @@ def get_selectors(config: Config) -> dict[str, bool]: ) subdirs = [subdir for subdir in DEFAULT_SUBDIRS if subdir != "noarch"] - subdir_oses = set([subdir.split("-")[0] for subdir in DEFAULT_SUBDIRS]) - subdir_archs = set([subdir.split("-")[1] for subdir in DEFAULT_SUBDIRS]) + subdir_oses = set([subdir.split("-")[0] for subdir in subdirs]) + subdir_archs = set([subdir.split("-")[1] for subdir in subdirs]) for subdir_os in subdir_oses: d[subdir_os] = plat.startswith(f"{subdir_os}-") - for arch in subdir_arches: + for arch in subdir_archs: arch_full = ARCH_MAP.get(arch, arch) d[arch_full] = plat.endswith(f"-{arch}") if arch == "32":