builtin: add a few missing __init__.py (#50374)
This commit is contained in:
@@ -350,7 +350,7 @@ def _ensure_no_folders_without_package_py(error_cls):
|
||||
for repository in spack.repo.PATH.repos:
|
||||
missing = []
|
||||
for entry in os.scandir(repository.packages_path):
|
||||
if not entry.is_dir():
|
||||
if not entry.is_dir() or entry.name == "__pycache__":
|
||||
continue
|
||||
package_py = pathlib.Path(entry.path) / spack.repo.package_file_name
|
||||
if not package_py.exists():
|
||||
|
@@ -232,6 +232,8 @@ def get_all_package_diffs(type: str, repo: "Repo", rev1="HEAD^1", rev2="HEAD") -
|
||||
changed: Set[str] = set()
|
||||
for path in lines:
|
||||
dir_name, _, _ = path.partition("/")
|
||||
if not nm.valid_module_name(dir_name, repo.package_api):
|
||||
continue
|
||||
pkg_name = nm.pkg_dir_to_pkg_name(dir_name, repo.package_api)
|
||||
if pkg_name not in added and pkg_name not in removed:
|
||||
changed.add(pkg_name)
|
||||
|
Reference in New Issue
Block a user