From eb0f5c6efe7028c8d37f909e231c4f108af149f7 Mon Sep 17 00:00:00 2001
From: Alastair Harrison <aharrison24@gmail.com>
Date: Tue, 23 Jan 2018 20:00:18 +0000
Subject: [PATCH] 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.
---
 lib/spack/spack/cmd/create.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
GitLab