From f6ead27b5b103fd59bd894d4e8e59cca7d2e32e8 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Tue, 28 Nov 2017 18:03:32 +0100 Subject: spack spec: don't show normalize + no hash for non concrete specs (#6417) Showing "Normalize" on output doesn't give users additional information, as this step is essentially an implementation detail of concretization. This PR skips it and shows just the input spec and the concretized one. Printing partial hashes for input spec has been disabled. --- lib/spack/spack/cmd/spec.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/spack/spack/cmd/spec.py b/lib/spack/spack/cmd/spec.py index 722987c35e..39705d34f2 100644 --- a/lib/spack/spack/cmd/spec.py +++ b/lib/spack/spack/cmd/spec.py @@ -62,7 +62,6 @@ def spec(parser, args): name_fmt = '$.' if args.namespaces else '$_' kwargs = {'cover': args.cover, 'format': name_fmt + '$@$%@+$+$=', - 'hashes': args.long or args.very_long, 'hashlen': None if args.very_long else 7, 'show_types': args.types, 'install_status': args.install_status} @@ -75,16 +74,12 @@ def spec(parser, args): print(spec.to_yaml()) continue - # Print some diagnostic info by default. + kwargs['hashes'] = False # Always False for input spec print("Input spec") print("--------------------------------") print(spec.tree(**kwargs)) - print("Normalized") - print("--------------------------------") - spec.normalize() - print(spec.tree(**kwargs)) - + kwargs['hashes'] = args.long or args.very_long print("Concretized") print("--------------------------------") spec.concretize() -- cgit v1.2.3-70-g09d2