]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- catch signpkg errors
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 27 May 2009 19:53:29 +0000 (19:53 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 27 May 2009 19:53:29 +0000 (19:53 +0000)
Changed files:
    bin/pfa-signpkg -> 1.6

bin/pfa-signpkg

index 3fe0eafe5c6e8cb2c4c114a38a176dc91b77b8cd..f4438cb39c09a0caeb064936648c5adeb2277188 100644 (file)
@@ -23,7 +23,7 @@ checkdir(sys.argv[1])
 ftpio.connect('sign')
 
 if not ftpio.lock(sys.argv[1], True):
-    print "ERR: %s tree already locked" % sys.argv[1]
+    print >>sys.stderr, "ERR: %s tree already locked" % sys.argv[1]
     sys.exit(1)
 
 files = []
@@ -50,4 +50,8 @@ if len(sign) == 0:
     sys.exit(0)
 
 print "Signing %d files" % len(sign)
-signpkgs(sign)
+try:
+    signpkgs(sign)
+except OSError, e:
+    print >>sys.stderr, "ERR: %s" % e
+    exit(1)
This page took 0.193744 seconds and 4 git commands to generate.