summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-11-10 00:10:22 +0100
committerGitHub <noreply@github.com>2021-11-09 15:10:22 -0800
commitb16bfe4f5f1bcfeca719325b0f02cf364bcf8f1b (patch)
tree7089026f426df956e642689df10e7e7e4870c713 /lib
parent0ab5d42bd527d907fb8c1b4a87877d13ba871364 (diff)
downloadspack-b16bfe4f5f1bcfeca719325b0f02cf364bcf8f1b.tar.gz
spack-b16bfe4f5f1bcfeca719325b0f02cf364bcf8f1b.tar.bz2
spack-b16bfe4f5f1bcfeca719325b0f02cf364bcf8f1b.tar.xz
spack-b16bfe4f5f1bcfeca719325b0f02cf364bcf8f1b.zip
spack tutorial: fix output to screen (#27316)
Spack was checking out v0.17, the output reported v0.16
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/tutorial.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/tutorial.py b/lib/spack/spack/cmd/tutorial.py
index 7db451fdbb..e5c9439c8c 100644
--- a/lib/spack/spack/cmd/tutorial.py
+++ b/lib/spack/spack/cmd/tutorial.py
@@ -77,7 +77,9 @@ def tutorial(parser, args):
# Note that checkout MUST be last. It changes Spack under our feet.
# If you don't put this last, you'll get import errors for the code
# that follows (exacerbated by the various lazy singletons we use)
- tty.msg("Ensuring we're on the releases/v0.16 branch")
+ tty.msg("Ensuring we're on the releases/v{0}.{1} branch".format(
+ *spack.spack_version_info[:2]
+ ))
git = which("git", required=True)
with working_dir(spack.paths.prefix):
git("checkout", tutorial_branch)