From a298296237e5a4b8279af7d97a6e99fa0b8dc932 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 95aee0d1266..4f5551ad8f7 100644 --- a/lib/spack/spack/relocate_text.py +++ b/lib/spack/spack/relocate_text.py @@ -209,7 +209,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)