summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Harrison <aharrison24@gmail.com>2018-01-23 20:00:18 +0000
committerAdam J. Stewart <ajstewart426@gmail.com>2018-01-23 14:00:18 -0600
commiteb0f5c6efe7028c8d37f909e231c4f108af149f7 (patch)
tree4672e041083bcb5b1bfe04b9a34e45bce32d65b1
parent3223186729f68de41459d3d497d752b0231b5e33 (diff)
downloadspack-eb0f5c6efe7028c8d37f909e231c4f108af149f7.tar.gz
spack-eb0f5c6efe7028c8d37f909e231c4f108af149f7.tar.bz2
spack-eb0f5c6efe7028c8d37f909e231c4f108af149f7.tar.xz
spack-eb0f5c6efe7028c8d37f909e231c4f108af149f7.zip
Fix error message typo in 'spack create' cmd (#7042)
- Previously would print the spec's namespace twice, rather than printing the spec's namespace, followed by the repo's namespace.
-rw-r--r--lib/spack/spack/cmd/create.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/create.py b/lib/spack/spack/cmd/create.py
index 897355e807..1be351a430 100644
--- a/lib/spack/spack/cmd/create.py
+++ b/lib/spack/spack/cmd/create.py
@@ -651,7 +651,7 @@ def get_repository(args, name):
repo = Repo(repo_path)
if spec.namespace and spec.namespace != repo.namespace:
tty.die("Can't create package with namespace {0} in repo with "
- "namespace {0}".format(spec.namespace, repo.namespace))
+ "namespace {1}".format(spec.namespace, repo.namespace))
else:
if spec.namespace:
repo = spack.repo.get_repo(spec.namespace, None)