]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- do not exit silently on errors. report and exit with failure
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 30 Sep 2012 15:31:03 +0000 (15:31 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Sun, 30 Sep 2012 15:31:03 +0000 (15:31 +0000)
Changed files:
    bin/pfa-from-incoming -> 1.28

bin/pfa-from-incoming

index 163ee01dafdbbc902c820ca11cef6d70d2d66683..5fd3f1b0aab5789d42c9fe7e46f15b24c3efdea5 100644 (file)
@@ -127,12 +127,14 @@ def move_noarch(f, arch, rpmfile, dstpkg):
 try:
     ftpio.connect('from-incoming-pid-%s' % os.getpid())
 except:
-    sys.exit(0)
+    print "Can't get ftpiod connection"
+    sys.exit(1)
 
 ftptree = BaseFtpTree(cval['default_to'])
 
 if not ftpio.lock(cval['default_to']):
-    sys.exit(0)
+    print "Can't get lock: %s" % cval['default_to']
+    sys.exit(1)
 
 moved_anything = False
 
This page took 0.07587 seconds and 4 git commands to generate.