pld-builder.new: PLD_Builder/gpg.py Better error.

arekm arekm at pld-linux.org
Fri Feb 9 15:08:05 CET 2007


Author: arekm                        Date: Fri Feb  9 14:08:05 2007 GMT
Module: pld-builder.new               Tag: HEAD
---- Log message:
Better error.

---- Files affected:
pld-builder.new/PLD_Builder:
   gpg.py (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: pld-builder.new/PLD_Builder/gpg.py
diff -u pld-builder.new/PLD_Builder/gpg.py:1.11 pld-builder.new/PLD_Builder/gpg.py:1.12
--- pld-builder.new/PLD_Builder/gpg.py:1.11	Fri Feb  9 14:42:15 2007
+++ pld-builder.new/PLD_Builder/gpg.py	Fri Feb  9 15:08:00 2007
@@ -18,8 +18,8 @@
     (gpg_out, gpg_in, gpg_err) = popen2.popen3("gpg --batch --no-tty --decrypt")
     try:
         body = pipeutil.rw_pipe(buf, gpg_in, gpg_out)
-    except OSError:
-        log.error("gnupg signing failed; does gpg binary exist?")
+    except OSError, e:
+        log.error("gnupg signing failed, does gpg binary exist? : %s" % e)
         raise
 
     rx = re.compile("^gpg: (Good signature from|                aka) .*<([^>]+)>")
@@ -35,8 +35,8 @@
     (gpg_out, gpg_in, gpg_err) = popen2.popen3("gpg --batch --no-tty --clearsign")
     try:
         body = pipeutil.rw_pipe(buf, gpg_in, gpg_out)
-    except OSError:
-        log.error("gnupg signing failed; does gpg binary exist?")
+    except OSError, e:
+        log.error("gnupg signing failed, does gpg binary exist? : %s" % e)
         raise
 
     gpg_err.close()
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/pld-builder.new/PLD_Builder/gpg.py?r1=1.11&r2=1.12&f=u



More information about the pld-cvs-commit mailing list