Skip to content
Snippets Groups Projects
Commit 47932421 authored by Tristan Carel's avatar Tristan Carel Committed by Peter Scheibel
Browse files

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

parent 229ed5c2
No related branches found
No related tags found
No related merge requests found
...@@ -720,7 +720,7 @@ def check(condition, msg): ...@@ -720,7 +720,7 @@ def check(condition, msg):
self.packages_path = os.path.join(self.root, packages_dir_name) self.packages_path = os.path.join(self.root, packages_dir_name)
check(os.path.isdir(self.packages_path), 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 # Read configuration and validate namespace
config = self._read_config() config = self._read_config()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment