]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- unlock tree on ^C
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 10 Feb 2011 12:47:48 +0000 (12:47 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 10 Feb 2011 12:47:48 +0000 (12:47 +0000)
Changed files:
    bin/pfa-lintpkg -> 1.6

bin/pfa-lintpkg

index 16a03a81c4def99a29e2f7b6c2814f127e34f749..e6030693824644fe966a86d618bbf63065d41c43 100644 (file)
@@ -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)
This page took 0.075967 seconds and 4 git commands to generate.