Package: dput
Version: 0.9.5.1ubuntu1
Severity: normal
Tags: patch

Steps to reproduce:
1) chmod o-r /usr/bin/gpg
2) dput xxx.changes

Expected result:
The package is uploaded successfully.

Actual result:
Can't verify signature on xxx.changes without GnuPG...

Patch:

diff --git a/dput b/dput
index 1916eca..4158ce9 100755
--- a/dput
+++ b/dput
@@ -189,7 +189,7 @@ def checksum_test(filename,hash):
 # Verify the GnuPG signature on a file.
 def check_signature(filename):
     if os.access(filename, os.R_OK):
-        if os.access("/usr/bin/gpg", os.R_OK):
+        if os.access("/usr/bin/gpg", os.X_OK):
             stream = os.popen("/usr/bin/gpg --status-fd 1 --verify --batch %s" 
             if stream.count('[GNUPG:] GOODSIG'):
                 print "Good signature on %s." % filename

-- System Information:
Debian Release: squeeze/sid
  APT prefers lucid-updates
  APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-24-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dput depends on:
ii  gnupg                    1.4.10-2ubuntu1 GNU privacy guard - a free PGP rep
ii  python                   2.6.5-0ubuntu1  An interactive high-level object-o

dput recommends no packages.

Versions of packages dput suggests:
ii  bzr                     2.1.1-1          easy to use distributed version co
ii  lintian                 2.3.4ubuntu2     Debian package checker
pn  mini-dinstall           <none>           (no description available)
ii  openssh-client          1:5.3p1-3ubuntu4 secure shell (SSH) client, for sec
ii  rsync                   3.0.7-1ubuntu1   fast remote file copy program (lik
pn  yaclc                   <none>           (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to