summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorElan Ruusamäe2011-02-10 12:47:48 (GMT)
committerElan Ruusamäe2011-02-10 12:47:48 (GMT)
commit5a13eb89447da79cac01940ce3b13e26317e935d (patch)
tree03aeacb1e224cb8fb6ff22de7b45bb0bfc8e4009 /bin
parent8d0f868fe964da9214b7bf3409213f653a3bc8c3 (diff)
downloadpld-ftp-admin-5a13eb89447da79cac01940ce3b13e26317e935d.zip
pld-ftp-admin-5a13eb89447da79cac01940ce3b13e26317e935d.tar.gz
- unlock tree on ^C
Changed files: bin/pfa-lintpkg -> 1.6
Diffstat (limited to 'bin')
-rw-r--r--bin/pfa-lintpkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pfa-lintpkg b/bin/pfa-lintpkg
index 16a03a8..e603069 100644
--- a/bin/pfa-lintpkg
+++ b/bin/pfa-lintpkg
@@ -37,7 +37,7 @@ try:
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)