diff options
author | Omar Padron <omar.padron@kitware.com> | 2021-01-20 14:27:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 13:27:41 -0600 |
commit | 43935b491791915f5261bc5e7d38a81befe38cf4 (patch) | |
tree | be66f137ec486d37d27b05eff4ab2f6ed9b4ac95 | |
parent | 6f3027b9fbc1b7e02731f8d87aa76d8d90c9d8ed (diff) | |
download | spack-43935b491791915f5261bc5e7d38a81befe38cf4.tar.gz spack-43935b491791915f5261bc5e7d38a81befe38cf4.tar.bz2 spack-43935b491791915f5261bc5e7d38a81befe38cf4.tar.xz spack-43935b491791915f5261bc5e7d38a81befe38cf4.zip |
fix an issue where some variants were not being concatenated correctly (#21174)
-rw-r--r-- | var/spack/repos/builtin/packages/ecp-data-vis-sdk/package.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/ecp-data-vis-sdk/package.py b/var/spack/repos/builtin/packages/ecp-data-vis-sdk/package.py index f752f1b8c5..c25b492fc6 100644 --- a/var/spack/repos/builtin/packages/ecp-data-vis-sdk/package.py +++ b/var/spack/repos/builtin/packages/ecp-data-vis-sdk/package.py @@ -69,7 +69,9 @@ class EcpDataVisSdk(BundlePackage): state = ['+' if d == '1' else '~' for d in format(i, '0' + str(n) + 'b')] [pkg_vars, dep_vars] = [''.join(v) for v in zip( *[(s + pv, s + dv) for s, (pv, dv) in zip(state, variants.items())])] - depends_on(dep_spec + dep_vars, when=(pkg_spec + pkg_vars)) + dependency = ' '.join((dep_spec, dep_vars)) + predicate = ' '.join((pkg_spec, pkg_vars)) + depends_on(dependency, when=predicate) ############################################################ # Dependencies |