summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2021-12-21 18:41:12 +0100
committerGitHub <noreply@github.com>2021-12-21 18:41:12 +0100
commitdb69a291d4937c230517a6f049010737c98ac1d8 (patch)
treeabeebc8eeea815ae21877f6e1fe75e8fe8560855 /lib
parent389beaef97e8aac59680c83d084fd7c07336f577 (diff)
downloadspack-db69a291d4937c230517a6f049010737c98ac1d8.tar.gz
spack-db69a291d4937c230517a6f049010737c98ac1d8.tar.bz2
spack-db69a291d4937c230517a6f049010737c98ac1d8.tar.xz
spack-db69a291d4937c230517a6f049010737c98ac1d8.zip
Regenerate views when specs already installed (#28113)
With this commit: ``` $ spack env activate --temp $ spack install zlib ==> All of the packages are already installed ==> Updating view at /tmp/spack-faiirgmt/.spack-env/view $ spack install zlib ==> All of the packages are already installed ``` Before this PR: ``` $ spack env activate --temp $ spack install zlib ==> All of the packages are already installed $ spack install zlib ==> All of the packages are already installed ``` No view was generated
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/environment/environment.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/spack/spack/environment/environment.py b/lib/spack/spack/environment/environment.py
index c6df78342a..67303c8a4d 100644
--- a/lib/spack/spack/environment/environment.py
+++ b/lib/spack/spack/environment/environment.py
@@ -1515,10 +1515,8 @@ class Environment(object):
if not specs_to_install:
tty.msg('All of the packages are already installed')
- return
-
- tty.debug('Processing {0} uninstalled specs'.format(
- len(specs_to_install)))
+ else:
+ tty.debug('Processing {0} uninstalled specs'.format(len(specs_to_install)))
specs_to_overwrite = self._get_overwrite_specs()
tty.debug('{0} specs need to be overwritten'.format(