summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMario Melara <maamelara@gmail.com>2016-06-18 10:49:39 -0700
committerMario Melara <maamelara@gmail.com>2016-06-18 10:49:39 -0700
commitccb62b46204531fa4ceeadd3b1722b0bb0e30f4f (patch)
tree2f8898b17cf729172a2444f7e1aa562d4d8b1f53 /lib
parent8af1c5fc8f246303ad353d5d91b3a9865cabfe49 (diff)
downloadspack-ccb62b46204531fa4ceeadd3b1722b0bb0e30f4f.tar.gz
spack-ccb62b46204531fa4ceeadd3b1722b0bb0e30f4f.tar.bz2
spack-ccb62b46204531fa4ceeadd3b1722b0bb0e30f4f.tar.xz
spack-ccb62b46204531fa4ceeadd3b1722b0bb0e30f4f.zip
Getting rid of no longer used init_config arg
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/compiler.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/spack/spack/cmd/compiler.py b/lib/spack/spack/cmd/compiler.py
index 3a496492ff..c95045ef85 100644
--- a/lib/spack/spack/cmd/compiler.py
+++ b/lib/spack/spack/cmd/compiler.py
@@ -77,11 +77,9 @@ def compiler_find(args):
paths = get_path('PATH')
compilers = [c for c in spack.compilers.find_compilers(*args.add_paths)
- if c.spec not in spack.compilers.all_compilers(scope=args.scope,
- init_config=False)]
+ if c.spec not in spack.compilers.all_compilers(scope=args.scope)]
if compilers:
- spack.compilers.add_compilers_to_config(compilers, scope=args.scope,
- init_config=False)
+ spack.compilers.add_compilers_to_config(compilers, scope=args.scope)
n = len(compilers)
s = 's' if n > 1 else ''
filename = spack.config.get_config_filename(args.scope, 'compilers')
@@ -94,7 +92,6 @@ def compiler_find(args):
def compiler_remove(args):
cspec = CompilerSpec(args.compiler_spec)
compilers = spack.compilers.compilers_for_spec(cspec, scope=args.scope)
-
if not compilers:
tty.die("No compilers match spec %s" % cspec)
elif not args.all and len(compilers) > 1: