Commit 047fe847 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: Guard against base package name collision

parent 89d17962
#!/usr/bin/env python
__version__ = '0.5.2'
__version__ = '0.5.3'
......@@ -78,6 +78,7 @@ def full_test(envfile, release_info):
platform = parse_environment_file_name(envfile)[1]
miniconda_url = release_info['miniconda'][platform]
base_packages = release_info['base_packages']
base_packages = sorted(base_packages, key=len, reverse=True)
download_file(miniconda_url, 'miniconda.sh')
......@@ -89,7 +90,7 @@ def full_test(envfile, release_info):
with open(envfile, 'rt') as f:
for line in f:
for pkg in base_packages:
if line.strip().startswith(f'- {pkg}'):
if line.strip().startswith(f'- {pkg} '):
pkgver = line.strip().split(maxsplit=2)[2]
basepkgs[pkg] = pkgver.replace(' ', '=')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment