summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-11-15 16:52:43 +0100
committerGitHub <noreply@github.com>2022-11-15 16:52:43 +0100
commitd1715c5fdf6eaf21e79e3046f331374e21100503 (patch)
treefcf0de14a113a50dabd35542b16789ee67b88464 /lib
parentb245f1ece19ac79bfa25fb6bb647ad15e8feca2b (diff)
downloadspack-d1715c5fdf6eaf21e79e3046f331374e21100503.tar.gz
spack-d1715c5fdf6eaf21e79e3046f331374e21100503.tar.bz2
spack-d1715c5fdf6eaf21e79e3046f331374e21100503.tar.xz
spack-d1715c5fdf6eaf21e79e3046f331374e21100503.zip
Fixup: start the timer before the phase (#33917)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/installer.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/spack/spack/installer.py b/lib/spack/spack/installer.py
index c348dd58c5..7a69d80abc 100644
--- a/lib/spack/spack/installer.py
+++ b/lib/spack/spack/installer.py
@@ -2042,9 +2042,8 @@ class BuildProcessInstaller(object):
tty.set_debug(inner_debug_level)
# Catch any errors to report to logging
- phase_fn.execute()
-
self.timer.start(phase_fn.name)
+ phase_fn.execute()
spack.hooks.on_phase_success(pkg, phase_fn.name, log_file)
self.timer.stop(phase_fn.name)