From de844880f1d1d2d02366773906d88fab6c3e2f99 Mon Sep 17 00:00:00 2001 From: Deepali <70963368+cdeepali@users.noreply.github.com> Date: Fri, 5 Jul 2024 19:45:25 +0530 Subject: [PATCH] Skip package_has_been_revoked (#232) --- open_ce/conda_utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/open_ce/conda_utils.py b/open_ce/conda_utils.py index 4bf6481e..2351d43f 100644 --- a/open_ce/conda_utils.py +++ b/open_ce/conda_utils.py @@ -17,6 +17,7 @@ """ import os import pathlib +import platform from logging import ERROR, getLogger from datetime import datetime import functools @@ -112,7 +113,7 @@ def wrapper(channels, package): @_make_hashable_args @functools.lru_cache(maxsize=1024) -def get_latest_package_info(channels, package): +def get_latest_package_info(channels, package):# pylint: disable=too-many-branches ''' Get the latest conda package info with the following priority: 1. Most Specific Channel @@ -125,6 +126,9 @@ def get_latest_package_info(channels, package): if package.startswith("__"): return "" + if package == "package_has_been_revoked" and (platform.machine() == 'x86_64' or platform.machine() == 's390x'): + return "" + channel_args = sum(([["--override-channels", "-c", channel]] for channel in channels), []) channel_args += [[]] # use defaults for last search all_std_out = ""