Ensured that dependencies of private libraries are no longer unnecessarily re-installed // Resolve #4987

This commit is contained in:
Ivan Kravets
2024-12-12 19:55:29 +02:00
parent 4e05309e02
commit ec2d01f277
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -297,7 +297,11 @@ def _install_project_private_library_deps(private_pkg, private_lm, env_lm, optio
if not spec.external and not spec.owner:
continue
pkg = private_lm.get_package(spec)
if not pkg and not env_lm.get_package(spec):
if (
not pkg
and not private_lm.get_package(spec)
and not env_lm.get_package(spec)
):
pkg = env_lm.install(
spec,
skip_dependencies=True,