Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip package_has_been_revoked #232

Merged
merged 2 commits into from
Jul 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion open_ce/conda_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""
import os
import pathlib
import platform
from logging import ERROR, getLogger
from datetime import datetime
import functools
Expand Down Expand Up @@ -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
Expand All @@ -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 = ""
Expand Down
Loading