summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2021-07-05 23:40:24 -0700
committerGitHub <noreply@github.com>2021-07-06 08:40:24 +0200
commite450612188aa1e6f48d4888c7ec97c18ad075157 (patch)
tree1a6bf6f3cd9960e83415854234fcdfc79e887b38 /lib
parent115c39e76238df933c7a58ed2710fedf146ea106 (diff)
downloadspack-e450612188aa1e6f48d4888c7ec97c18ad075157.tar.gz
spack-e450612188aa1e6f48d4888c7ec97c18ad075157.tar.bz2
spack-e450612188aa1e6f48d4888c7ec97c18ad075157.tar.xz
spack-e450612188aa1e6f48d4888c7ec97c18ad075157.zip
installer: fix double print of exception (#24697)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/installer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/spack/installer.py b/lib/spack/spack/installer.py
index 50218be5b9..6e812959f9 100644
--- a/lib/spack/spack/installer.py
+++ b/lib/spack/spack/installer.py
@@ -1618,6 +1618,7 @@ class PackageInstaller(object):
# package as a failure.
if (not isinstance(exc, spack.error.SpackError) or
not exc.printed):
+ exc.printed = True
# SpackErrors can be printed by the build process or at
# lower levels -- skip printing if already printed.
# TODO: sort out this and SpackError.print_context()