spack repo add: fix error message when `packages' directory is missing (#11031)

This commit is contained in:
Tristan Carel 2019-04-03 02:05:57 +02:00 committed by Peter Scheibel
parent 229ed5c228
commit 4793242158

View file

@ -720,7 +720,7 @@ def check(condition, msg):
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()