From b16bfe4f5f1bcfeca719325b0f02cf364bcf8f1b Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Wed, 10 Nov 2021 00:10:22 +0100 Subject: spack tutorial: fix output to screen (#27316) Spack was checking out v0.17, the output reported v0.16 --- lib/spack/spack/cmd/tutorial.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') 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) -- cgit v1.2.3-70-g09d2