소스 검색

Fix overly broad check for existing miniforge build files

The glob pattern we were using was too permissive and detecting
miniconda build scripts as miniforge build scripts when they shared the
same version. I have rewritten the pattern matching code to ensure we
only look at files starting with `miniforge` and `mambaforge`.
pull/2909/head
Alex Hedges 7 달 전
부모
커밋
a43259a186
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      plugins/python-build/scripts/add_miniforge.py

+ 1
- 1
plugins/python-build/scripts/add_miniforge.py 파일 보기

@ -100,6 +100,6 @@ for release in requests.get(f'https://api.github.com/repos/{MINIFORGE_REPO}/rele
logger.info('Looking for %(version)s in %(out_dir)s', locals())
if not list(out_dir.glob(f'*-{version}')):
if any(not list(out_dir.glob(f'{distribution}*-{version}')) for distribution in DISTRIBUTIONS):
logger.info('Downloading %(version)s', locals())
add_version(release)

불러오는 중...
취소
저장