Skip to content

Commit

Permalink
Skip package_has_been_revoked (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeepali authored Jul 5, 2024
1 parent 0fb0dec commit de84488
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit de84488

Please sign in to comment.