[projects/pld-ftp-admin] ftptree: refuse when the builder queue cannot be read

arekm arekm at pld-linux.org
Thu Nov 12 00:28:41 CET 2026


commit a2edb0f0b202e6f127d610951731753f07cce318
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Nov 11 23:16:30 2026 +0100

    ftptree: refuse when the builder queue cannot be read
    
    An unreachable builder queue was only a warning, and the move or
    removal went on with none of the checks that need the queue: an
    unfinished build passed as a finished one.
    
    It is an error now, so pfa-mvpkg, pfa-rmpkg and clean-dups stop and
    pfa-testmvpkg reports it. pfa-mvpkg -nb still moves without the queue.

 modules/ftptree.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/modules/ftptree.py b/modules/ftptree.py
index 75ce822..d1e94cf 100644
--- a/modules/ftptree.py
+++ b/modules/ftptree.py
@@ -439,7 +439,8 @@ class FtpTree(BaseFtpTree):
         try:
             f = urllib.request.urlopen(config.builderqueue)
         except urllib.error.URLError as e:
-            pwarning(f"Unable to open: {config.builderqueue} {e}")
+            # no queue, no check: refuse rather than take an unfinished build for a finished one
+            perror(f"Unable to open: {config.builderqueue} {e}")
             return
 
         # request id -> (src.rpm, builder -> status) of each of its batches; two batches may build one src.rpm
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/f0f51b4f65cdffd92042e4d10e359be0a751e080



More information about the pld-cvs-commit mailing list