[projects/pld-ftp-admin] pfa-mvpkg, pfa-testmvpkg: take any status but a final one for a build not finished
arekm
arekm at pld-linux.org
Thu Nov 12 00:28:36 CET 2026
commit 6d4c49359e1b44c70c78e8e25695c01e46344cae
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Nov 11 23:12:18 2026 +0100
pfa-mvpkg, pfa-testmvpkg: take any status but a final one for a build not finished
Only "?" in the builder queue counted as a build in progress. The
binary builders are about to report BUILDING and UPLOADING on the way
to OK, which would have passed as done. Now every status but OK,
FAIL*, SKIP* and UNSUPP stops the move.
modules/ftptree.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/modules/ftptree.py b/modules/ftptree.py
index a9f006e..75ce822 100644
--- a/modules/ftptree.py
+++ b/modules/ftptree.py
@@ -458,7 +458,8 @@ class FtpTree(BaseFtpTree):
for pkg in marked:
for bid in pkg.build:
batches = requests.get(bid, [])
- if any('?' in s for _, status in batches for s in status.values()):
+ # anything but a final status: waiting (?), or a state a newer builder reports on the way
+ if any(not s.startswith(('OK', 'FAIL', 'SKIP', 'UNSUPP')) for _, status in batches for s in status.values()):
pkg.error(f"(buildid {bid}) building not finished")
continue
# a builder reports a build done before it sends the rpms; the rpms of a noarch
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/f0f51b4f65cdffd92042e4d10e359be0a751e080
More information about the pld-cvs-commit
mailing list