From 85c0dd7aeaae23d953f54d0315310e715583f7cb Mon Sep 17 00:00:00 2001 From: David Given Date: Thu, 23 Apr 2026 23:30:06 +0200 Subject: [PATCH] Make sure that && always has whitespace around it. --- build/ab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/ab.py b/build/ab.py index 81e3c9fff..56dc4c892 100644 --- a/build/ab.py +++ b/build/ab.py @@ -526,6 +526,7 @@ def generate(xs): def filenameof(x): + x = targetof(x) xs = filenamesof(x.outs) assert ( len(xs) == 1 @@ -611,7 +612,7 @@ def emit_rule(self, ins, outs, cmds=[], label=None): emit("build", *fouts, ":rule", *fins) emit( " command=", - "&&".join([s.strip() for s in rule]).replace("$", "$$"), + " && ".join([s.strip() for s in rule]).replace("$", "$$"), ) if label: emit(" description=", label)