installer: fix double print of exception (#24697)

This commit is contained in:
eugeneswalker 2021-07-05 23:40:24 -07:00 committed by GitHub
parent 115c39e762
commit e450612188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1618,6 +1618,7 @@ def install(self):
# 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()