Package: python-gnupginterface Version: 0.3.2-9sv1 Severity: minor Tags: patch
Hi, GnuPGInterface is incorrectly reporting the exit status of its child gpg processes when an error occurs: File "/var/lib/python-support/python2.4/GnuPGInterface.py", line 639, in wait raise IOError, "GnuPG exited non-zero, with code %d" % (e << 8) IOError: GnuPG exited non-zero, with code 131072 The bitshift is being performed in the wrong direction -- gpg actually exited with status 2. I've attached the trivial patch to correct this. Regards, Stephen Veiss -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-6-amd64 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages python-gnupginterface depends on: ii gnupg 1.4.6-2 GNU privacy guard - a free PGP rep ii python-support 0.5.6 automated rebuilding support for p python-gnupginterface recommends no packages. -- no debconf information
diff -u gnupginterface-0.3.2.orig/GnuPGInterface.py gnupginterface-0.3.2/GnuPGInterface.py --- gnupginterface-0.3.2.orig/GnuPGInterface.py 2002-01-11 14:22:04.000000000 -0600 +++ gnupginterface-0.3.2/GnuPGInterface.py 2008-12-21 23:14:29.000000000 -0600 @@ -636,7 +636,7 @@ e = os.waitpid(self.pid, 0)[1] if e != 0: - raise IOError, "GnuPG exited non-zero, with code %d" % (e << 8) + raise IOError, "GnuPG exited non-zero, with code %d" % (e >> 8) def _run_doctests(): import doctest, GnuPGInterface Common subdirectories: gnupginterface-0.3.2.orig/debian and gnupginterface-0.3.2/debian