summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTristan Carel <tristan.carel@gmail.com>2019-04-03 02:05:57 +0200
committerPeter Scheibel <scheibel1@llnl.gov>2019-04-02 17:05:57 -0700
commit4793242158b8b660b973d531d27e76321159bf51 (patch)
treece9579e1054e7a3c418d60d007c934d7ed71f37e /lib
parent229ed5c22861c4a5ccd8d7b09db9e005bb9f9c59 (diff)
downloadspack-4793242158b8b660b973d531d27e76321159bf51.tar.gz
spack-4793242158b8b660b973d531d27e76321159bf51.tar.bz2
spack-4793242158b8b660b973d531d27e76321159bf51.tar.xz
spack-4793242158b8b660b973d531d27e76321159bf51.zip
spack repo add: fix error message when `packages' directory is missing (#11031)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/repo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/repo.py b/lib/spack/spack/repo.py
index 01f934615e..db10f25bf7 100644
--- a/lib/spack/spack/repo.py
+++ b/lib/spack/spack/repo.py
@@ -720,7 +720,7 @@ class Repo(object):
self.packages_path = os.path.join(self.root, packages_dir_name)
check(os.path.isdir(self.packages_path),
- "No directory '%s' found in '%s'" % (repo_config_name, root))
+ "No directory '%s' found in '%s'" % (packages_dir_name, root))
# Read configuration and validate namespace
config = self._read_config()