diff options
author | Greg Becker <becker33@llnl.gov> | 2023-08-23 17:23:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-23 23:23:35 +0200 |
commit | 9e5ca525f79206d6d56cf1ee597b2d97e92b9f96 (patch) | |
tree | 78770116bae11eab1980fb5c09c76c599759ce0c | |
parent | 5ea4322f880b91cab6aef5e96102dc7a7b523b77 (diff) | |
download | spack-9e5ca525f79206d6d56cf1ee597b2d97e92b9f96.tar.gz spack-9e5ca525f79206d6d56cf1ee597b2d97e92b9f96.tar.bz2 spack-9e5ca525f79206d6d56cf1ee597b2d97e92b9f96.tar.xz spack-9e5ca525f79206d6d56cf1ee597b2d97e92b9f96.zip |
do not warn for invalid package name on repo.yaml if subdirectory: '' (#39439)
-rw-r--r-- | lib/spack/spack/repo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/repo.py b/lib/spack/spack/repo.py index 1882645f85..a4362d9d31 100644 --- a/lib/spack/spack/repo.py +++ b/lib/spack/spack/repo.py @@ -387,7 +387,7 @@ class FastPackageChecker(collections.abc.Mapping): # Warn about invalid names that look like packages. 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( 'Skipping package at {0}. "{1}" is not ' "a valid Spack module name.".format(pkg_dir, pkg_name) |