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)