[projects/pld-ftp-admin] pfa-testmvpkg: exit with 1 when the move would fail

arekm arekm at pld-linux.org
Tue Oct 27 10:55:52 CET 2026


commit b95e9580bd909499498eb706ea8081feb850f19a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Oct 24 18:31:26 2026 +0200

    pfa-testmvpkg: exit with 1 when the move would fail
    
    The problems were printed, but the exit status was 0 either way, so a
    script could not tell whether pfa-mvpkg would go through.  A missing
    signature stays a warning, as packages may be signed after the test.

 bin/pfa-testmvpkg | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/bin/pfa-testmvpkg b/bin/pfa-testmvpkg
index e2d909b..da8357a 100755
--- a/bin/pfa-testmvpkg
+++ b/bin/pfa-testmvpkg
@@ -73,3 +73,6 @@ ftpio.unlock(srcname)
 ftpio.unlock(dstname)
 if archivetreename != None and archivetreename != srcname:
     ftpio.unlock(archivetreename)
+
+# the problems are printed above; let scripts see them too
+sys.exit(1 if ftptree.errnum else 0)
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list