The following commit has been merged in the master branch:
commit 57ddc62b417fa3ea0b85cd50f15ffbb75b1ea1d2
Author: Niels Thykier <ni...@thykier.net>
Date:   Fri Jun 15 17:11:54 2012 +0200

    Dpkg::Source::Package: Do not assume $ENV{'HOME'} is defined
    
    Closes: #677631
    
    Reviewed-by: Jonathan Nieder <jrnie...@gmail.com>
    Signed-off-by: Guillem Jover <guil...@debian.org>

diff --git a/debian/changelog b/debian/changelog
index 48d93b8..2b3d142 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -23,6 +23,8 @@ dpkg (1.16.5) UNRELEASED; urgency=low
     different version from the source package. Closes: #440094, #672723
   * Minimize source architecture list on «dpkg-source -b» by removing
     architectures already covered by architecture wildcards. Closes: #675333
+  * Do not assume $ENV{'HOME'} is defined in Dpkg::Source::Package.
+    Thanks to Niels Thykier <ni...@thykier.net>. Closes: #677631
 
   [ Updated dpkg translations ]
   * Swedish (Peter Krefting).
diff --git a/scripts/Dpkg/Source/Package.pm b/scripts/Dpkg/Source/Package.pm
index 972f6e7..47ea319 100644
--- a/scripts/Dpkg/Source/Package.pm
+++ b/scripts/Dpkg/Source/Package.pm
@@ -349,7 +349,7 @@ sub check_signature {
         push @exec, "gpg", "--no-default-keyring", "-q", "--verify";
     }
     if (scalar(@exec)) {
-        if (-r "$ENV{'HOME'}/.gnupg/trustedkeys.gpg") {
+        if (defined $ENV{'HOME'} and -r "$ENV{'HOME'}/.gnupg/trustedkeys.gpg") 
{
             push @exec, "--keyring", "$ENV{'HOME'}/.gnupg/trustedkeys.gpg";
         }
         foreach my $vendor_keyring (run_vendor_hook('keyrings')) {

-- 
dpkg's main repository


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

Reply via email to