From 9b53bb09f526bd84cb15111f878f17f5f6edbb57 Mon Sep 17 00:00:00 2001 From: Gregory Becker Date: Wed, 10 Jul 2024 16:27:58 -0700 Subject: [PATCH] rewiring: new dependencies may not have relocation information --- lib/spack/spack/binary_distribution.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/spack/spack/binary_distribution.py b/lib/spack/spack/binary_distribution.py index 87b951bd92a..727abb8fd31 100644 --- a/lib/spack/spack/binary_distribution.py +++ b/lib/spack/spack/binary_distribution.py @@ -2116,9 +2116,9 @@ def relocate_package(spec): lookup_dag_hash = spec.build_spec[virtual].dag_hash() break except KeyError: - pass - else: - raise KeyError(f"{spec} does not depend on {name}") + # This is a new dependency + tty.debug(f"{spec} does not have relocation for {name}") + if lookup_dag_hash in hash_to_old_prefix: old_dep_prefix = hash_to_old_prefix[lookup_dag_hash]