[projects/pld-ftp-admin] ftptree: warn when a test move cannot read an rpm header for obsoletes

arekm arekm at pld-linux.org
Tue Oct 27 23:50:39 CET 2026


commit dcb7070978482eea3347fd0bed77fd94e0d0de4e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Oct 27 21:36:09 2026 +0100

    ftptree: warn when a test move cannot read an rpm header for obsoletes
    
    rpm refuses the header of a package signed by a key missing from its
    database, or of a damaged file.  The obsoletes check of pfa-testmvpkg
    then stopped with a traceback, and the rest of the test of every
    package given was lost.  It now warns and goes on.  A warning, not an
    error: the move itself does not read the header, and into a signed
    tree the signature check already reports such a file as an error.

 modules/ftptree.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/modules/ftptree.py b/modules/ftptree.py
index f326211..ac83d1c 100644
--- a/modules/ftptree.py
+++ b/modules/ftptree.py
@@ -563,7 +563,9 @@ class FtpTree(BaseFtpTree):
                 if info[file] is None:
                     continue
                 if info[file].error:
-                    raise rpm.error(info[file].error)
+                    # the move itself does not read the header, so the test goes on without it
+                    pkg.warning(f'obsoletes not checked: {info[file].error}')
+                    continue
                 if info[file].obsoletes:
                     obsoletes.setdefault(info[file].name, set()).update(info[file].obsoletes)
 
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list