diff options
author | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2017-11-28 18:03:32 +0100 |
---|---|---|
committer | scheibelp <scheibel1@llnl.gov> | 2017-11-28 09:03:32 -0800 |
commit | f6ead27b5b103fd59bd894d4e8e59cca7d2e32e8 (patch) | |
tree | 0a4de9afe8c91e1186a09ff577dad579f887962f /lib | |
parent | ddb55c2b2620202140b2ab8f94645b971ee75cfa (diff) | |
download | spack-f6ead27b5b103fd59bd894d4e8e59cca7d2e32e8.tar.gz spack-f6ead27b5b103fd59bd894d4e8e59cca7d2e32e8.tar.bz2 spack-f6ead27b5b103fd59bd894d4e8e59cca7d2e32e8.tar.xz spack-f6ead27b5b103fd59bd894d4e8e59cca7d2e32e8.zip |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/spec.py | 9 |
1 files 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() |