[projects/pld-builder.new] rpm_builder: build only the batches for this builder

arekm arekm at pld-linux.org
Sat Nov 28 21:34:25 CET 2026


commit 0d09781d558eb24f654b9eb51aee6aa18da2f105
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Nov 28 19:25:22 2026 +0100

    rpm_builder: build only the batches for this builder
    
    A bin builder took every package of a request with any batch for it,
    also those listing other builders only.

 PLD_Builder/rpm_builder.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/PLD_Builder/rpm_builder.py b/PLD_Builder/rpm_builder.py
index 69874e4..cb1a2c7 100644
--- a/PLD_Builder/rpm_builder.py
+++ b/PLD_Builder/rpm_builder.py
@@ -328,6 +328,9 @@ def build_rpm(r, b):
     return res
 
 def handle_request(r):
+    # the others are for other builders; none of these depends on one of them, as the src builder
+    # sends on only the batches it built and those not depending on one that failed there
+    r.batches = [b for b in r.batches if config.builder in b.builders]
     ftp.init(r)
     buildlogs.init(r)
     build.build_all(r, build_rpm, notify_now=True)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/037bbbdb7a6dd2a0d492f650797514fec18bc6b8



More information about the pld-cvs-commit mailing list