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.
This commit is contained in:
Alastair Harrison 2018-01-23 20:00:18 +00:00 committed by Adam J. Stewart
parent 3223186729
commit eb0f5c6efe

View file

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