pld-ftp-admin: scripts/lintpkg.py - unlock tree on ^C
glen
glen at pld-linux.org
Thu Feb 10 13:47:53 CET 2011
Author: glen Date: Thu Feb 10 12:47:53 2011 GMT
Module: pld-ftp-admin Tag: HEAD
---- Log message:
- unlock tree on ^C
---- Files affected:
pld-ftp-admin/scripts:
lintpkg.py (1.5 -> 1.6)
---- Diffs:
================================================================
Index: pld-ftp-admin/scripts/lintpkg.py
diff -u pld-ftp-admin/scripts/lintpkg.py:1.5 pld-ftp-admin/scripts/lintpkg.py:1.6
--- pld-ftp-admin/scripts/lintpkg.py:1.5 Thu Feb 10 13:44:19 2011
+++ pld-ftp-admin/scripts/lintpkg.py Thu Feb 10 13:47:48 2011
@@ -37,7 +37,7 @@
tree.mark4moving(sys.argv[2:])
files = tree.rpmfiles(debugfiles = False, sourcefiles = False)
-except ftptree.SomeError:
+except (ftptree.SomeError, KeyboardInterrupt), e:
# In case of problems we need to unlock the tree before exiting
ftpio.unlock(sys.argv[1])
sys.exit(1)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/scripts/lintpkg.py?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list