From d72b371c8a961f175ae9767885b4fe8873872bf4 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Tue, 14 Jan 2025 13:29:06 +0100 Subject: [PATCH] relocate_text: fix return value (#48568) --- lib/spack/spack/relocate_text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/relocate_text.py b/lib/spack/spack/relocate_text.py index f7f33b26809..0195a13795e 100644 --- a/lib/spack/spack/relocate_text.py +++ b/lib/spack/spack/relocate_text.py @@ -208,7 +208,7 @@ def _apply_to_file(self, f): # but it's nasty to deal with matches across boundaries, so let's stick to # something simple. - modified = True + modified = False for match in self.regex.finditer(f.read()): # The matching prefix (old) and its replacement (new)