mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
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`.
This commit is contained in:
parent
8316450887
commit
a43259a186
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
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())
|
logger.info('Downloading %(version)s', locals())
|
||||||
add_version(release)
|
add_version(release)
|
||||||
|
|
Loading…
Reference in a new issue