Commit 57ddc62b authored by Niels Thykier's avatar Niels Thykier Committed by Guillem Jover

Dpkg::Source::Package: Do not assume $ENV{'HOME'} is defined

Closes: #677631
Reviewed-by: Jonathan Nieder's avatarJonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Guillem Jover's avatarGuillem Jover <guillem@debian.org>
parent 16c75fc4
......@@ -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 <niels@thykier.net>. Closes: #677631
[ Updated dpkg translations ]
* Swedish (Peter Krefting).
......
......@@ -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')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment