[projects/pld-ftp-admin] pfa-checktree: say so when the source tree is empty

arekm arekm at pld-linux.org
Sat Nov 21 10:43:42 CET 2026


commit 10a22633122a22ee7f64a3fbf7a5462dc80066ef
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Nov 21 02:06:26 2026 +0100

    pfa-checktree: say so when the source tree is empty
    
    It stopped with a curses error on a pad of no lines.

 bin/pfa-checktree | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/bin/pfa-checktree b/bin/pfa-checktree
index 7334e41..f36b8bc 100755
--- a/bin/pfa-checktree
+++ b/bin/pfa-checktree
@@ -70,6 +70,10 @@ pkglist=[]
 for key in sorted(pkgtree.keys()):
     pkglist=pkglist+pkgtree[key]
 
+if not pkglist:
+    print(f"No packages in {srcname}")
+    sys.exit(0)
+
 class DoQuit(Exception):
     pass
 
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list