Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
conda
manifest-rules
Commits
047fe847
Commit
047fe847
authored
Oct 20, 2021
by
Paul McCarthy
🚵
Browse files
BF: Guard against base package name collision
parent
89d17962
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifest_rules/__init__.py
View file @
047fe847
#!/usr/bin/env python
__version__
=
'0.5.
2
'
__version__
=
'0.5.
3
'
manifest_rules/test_environment.py
View file @
047fe847
...
...
@@ -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
(
' '
,
'='
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment