summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2021-08-24 17:21:48 -0700
committerGitHub <noreply@github.com>2021-08-25 00:21:48 +0000
commit99076660d45e317cdb5262c65f3446cd23f36bf0 (patch)
tree8d69dfdb19138521e136c99d453790de4ef9984c /lib
parent80713e234c1b1b6c10dcf6450b1832e1a5a8010c (diff)
downloadspack-99076660d45e317cdb5262c65f3446cd23f36bf0.tar.gz
spack-99076660d45e317cdb5262c65f3446cd23f36bf0.tar.bz2
spack-99076660d45e317cdb5262c65f3446cd23f36bf0.tar.xz
spack-99076660d45e317cdb5262c65f3446cd23f36bf0.zip
bugfix: Correct source of PID for -ddd installation outputs (#25596)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/installer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/installer.py b/lib/spack/spack/installer.py
index baeaac70fb..dc0180feed 100644
--- a/lib/spack/spack/installer.py
+++ b/lib/spack/spack/installer.py
@@ -1163,7 +1163,7 @@ class PackageInstaller(object):
except spack.build_environment.StopPhase as e:
# A StopPhase exception means that do_install was asked to
# stop early from clients, and is not an error at this point
- pid = '{0}: '.format(pkg.pid) if tty.show_pid() else ''
+ pid = '{0}: '.format(self.pid) if tty.show_pid() else ''
tty.debug('{0}{1}'.format(pid, str(e)))
tty.debug('Package stage directory: {0}' .format(pkg.stage.source_path))
@@ -1715,7 +1715,7 @@ class BuildProcessInstaller(object):
self.filter_fn = spack.util.path.padding_filter if filter_padding else None
# info/debug information
- pid = '{0}: '.format(pkg.pid) if tty.show_pid() else ''
+ pid = '{0}: '.format(os.getpid()) if tty.show_pid() else ''
self.pre = '{0}{1}:'.format(pid, pkg.name)
self.pkg_id = package_id(pkg)