do not warn for invalid package name on repo.yaml if subdirectory: '' (#39439)
This commit is contained in:
parent
5ea4322f88
commit
9e5ca525f7
1 changed files with 1 additions and 1 deletions
|
@ -387,7 +387,7 @@ def _create_new_cache(self) -> Dict[str, os.stat_result]:
|
||||||
|
|
||||||
# Warn about invalid names that look like packages.
|
# Warn about invalid names that look like packages.
|
||||||
if not nm.valid_module_name(pkg_name):
|
if not nm.valid_module_name(pkg_name):
|
||||||
if not pkg_name.startswith("."):
|
if not pkg_name.startswith(".") and pkg_name != "repo.yaml":
|
||||||
tty.warn(
|
tty.warn(
|
||||||
'Skipping package at {0}. "{1}" is not '
|
'Skipping package at {0}. "{1}" is not '
|
||||||
"a valid Spack module name.".format(pkg_dir, pkg_name)
|
"a valid Spack module name.".format(pkg_dir, pkg_name)
|
||||||
|
|
Loading…
Reference in a new issue