From 7a24564bd8d89e8965b7b7ec60fe4ce21b287c4a Mon Sep 17 00:00:00 2001 From: Razvan-Liviu Varzaru Date: Fri, 10 Jan 2025 14:35:45 +0200 Subject: [PATCH] ls2string should append if the line is not empty This is a fix for https://github.com/MariaDB/buildbot/commit/c270d1a779f58a1c2ec168d98cfaf62d5979ee97 where the condition has been reversed. --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 8077cb91..86fbaab8 100644 --- a/utils.py +++ b/utils.py @@ -322,7 +322,7 @@ def ls2string(rc: int, stdout: str, stderr: str) -> dict[str, str]: ls_filenames = [] for line in stdout.strip().split("\n"): line = line.strip() - if not line: + if line: ls_filenames.append(line) return {"packages": " ".join(ls_filenames)}