diff options
author | alalazo <massimiliano.culpo@googlemail.com> | 2016-06-30 16:49:24 +0200 |
---|---|---|
committer | alalazo <massimiliano.culpo@googlemail.com> | 2016-06-30 16:49:24 +0200 |
commit | a770151359a9c573bfd967f79eab26670d499af0 (patch) | |
tree | fa55febd85f47c1dadc573da4fe03cbbe08b8830 | |
parent | ba87937fffc5843b5f32246571b79d499dafeba3 (diff) | |
download | spack-a770151359a9c573bfd967f79eab26670d499af0.tar.gz spack-a770151359a9c573bfd967f79eab26670d499af0.tar.bz2 spack-a770151359a9c573bfd967f79eab26670d499af0.tar.xz spack-a770151359a9c573bfd967f79eab26670d499af0.zip |
module : minor improvement to output formatting
-rwxr-xr-x | bin/spack | 2 | ||||
-rw-r--r-- | lib/spack/spack/cmd/module.py | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -77,7 +77,7 @@ import llnl.util.tty as tty from llnl.util.tty.color import * import spack from spack.error import SpackError -import argparse +from external import argparse # Command parsing parser = argparse.ArgumentParser( diff --git a/lib/spack/spack/cmd/module.py b/lib/spack/spack/cmd/module.py index 4f6b4764b6..4f0593e45e 100644 --- a/lib/spack/spack/cmd/module.py +++ b/lib/spack/spack/cmd/module.py @@ -95,9 +95,10 @@ def module_refresh(name, specs, args): tty.msg('No package matches your query') return - tty.msg('You are about to regenerate the {name} module files for the following specs:'.format(name=name)) + tty.msg('You are about to regenerate the {name} module files for the following specs:\n'.format(name=name)) for s in specs: print(s.format(color=True)) + print('') ask_for_confirmation('Do you want to proceed ? ') cls = module_types[name] @@ -112,10 +113,9 @@ def module_refresh(name, specs, args): message = 'Name clashes detected in module files:\n' for filename, writer_list in file2writer.items(): if len(writer_list) > 1: - message += 'file : {0}\n'.format(filename) + message += '\nfile : {0}\n'.format(filename) for x in writer_list: message += 'spec : {0}\n'.format(x.spec.format(color=True)) - message += '\n' tty.error(message) tty.error('Operation aborted') raise SystemExit(1) |