diff options
author | Greg Becker <becker33@llnl.gov> | 2019-10-14 17:50:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-14 17:50:38 -0700 |
commit | 3f46f03c837da9959b4257c710e521fc9bf777bb (patch) | |
tree | 3b8de618c91fc94db7a5187449881f01342a837f /var | |
parent | a63e64f1c4f2f96d68daa1916ca77d4986b60cf1 (diff) | |
download | spack-3f46f03c837da9959b4257c710e521fc9bf777bb.tar.gz spack-3f46f03c837da9959b4257c710e521fc9bf777bb.tar.bz2 spack-3f46f03c837da9959b4257c710e521fc9bf777bb.tar.xz spack-3f46f03c837da9959b4257c710e521fc9bf777bb.zip |
bugfix: install --only dependencies works in env (#13090)
* bugfix: install --only dependents works in env
includes regression testing
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/dependent-install/package.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin.mock/packages/dependent-install/package.py b/var/spack/repos/builtin.mock/packages/dependent-install/package.py index 1a0f13ffea..54c60ce99e 100644 --- a/var/spack/repos/builtin.mock/packages/dependent-install/package.py +++ b/var/spack/repos/builtin.mock/packages/dependent-install/package.py @@ -13,8 +13,10 @@ class DependentInstall(Package): url = "http://www.example.com/a-1.0.tar.gz" version('1.0', '0123456789abcdef0123456789abcdef') + version('2.0', '0123456789abcdef0123456789abcdef') - depends_on('dependency-install') + depends_on('dependency-install@2.0', when='@2.0') + depends_on('dependency-install@1.0', when='@1.0') def install(self, spec, prefix): touch(join_path(prefix, 'an_installation_file')) |