summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2019-08-31 03:55:10 +0200
committerGuillem Jover <guillem@debian.org>2019-10-30 22:02:37 +0100
commite4f9fc7a5040f0eeef330e82bdeda6483bbd8a50 (patch)
tree30078e00ac7bc96e850e3e3b2ec726d73e85385f /scripts
parent139dfc4c78593d995610c0aa180300a9a7dd94ac (diff)
downloaddpkg-e4f9fc7a5040f0eeef330e82bdeda6483bbd8a50.tar.gz
Dpkg::OpenPGP: Make it possible to verify detached signatures
This is required to be able to verify original upstream tarball signatures, as they are expected to be ASCII armored detached signatures for the upstream tarballs.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Dpkg/OpenPGP.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/Dpkg/OpenPGP.pm b/scripts/Dpkg/OpenPGP.pm
index 234c90a4d..f207af228 100644
--- a/scripts/Dpkg/OpenPGP.pm
+++ b/scripts/Dpkg/OpenPGP.pm
@@ -103,6 +103,7 @@ sub verify_signature {
push @exec, '--keyring', $keyring;
}
push @exec, $sig;
+ push @exec, $opts{datafile} if exists $opts{datafile};
my ($stdout, $stderr);
spawn(exec => \@exec, wait_child => 1, nocheck => 1, timeout => 10,