From 0245f5f5d9d9c1891a7a24d27e1ecc3c21f65e55 Mon Sep 17 00:00:00 2001 From: Chris Oloff Date: Wed, 24 Jul 2024 12:49:29 +0200 Subject: Fix acprep script The script has a syntax error, caused by commit 815305b9: in escape_string() function the first argument to re.sub() was probably changed unintentionally. This reverts this one line. To test, I used acprep to build the binary locally, which succeeded. More testing might be needed, I don't have enough context to do that. --- acprep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acprep b/acprep index 70b28e03..830e8c60 100755 --- a/acprep +++ b/acprep @@ -840,7 +840,7 @@ class PrepareBuild(CommandLineApp): PrepareBuild.__dict__['setup_flavor_' + self.current_flavor](self) def escape_string(self, data): - return re.sub(r'(['\\\\])', '\\\\\\1', data) + return re.sub(r'(["\\\\])', '\\\\\\1', data) def finalize_config(self): self.setup_flavor() -- cgit v1.2.3