From: Ian Jackson Date: Sun, 23 Oct 2016 20:11:37 +0000 (+0100) Subject: import-dsc: Check the signature X-Git-Tag: archive/debian/2.9~44 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=c646a7f57da1b79467aab438ecf1d80d185a0456 import-dsc: Check the signature Signed-off-by: Ian Jackson --- diff --git a/dgit b/dgit index ef815997..c6d1be7b 100755 --- a/dgit +++ b/dgit @@ -5304,6 +5304,19 @@ sub cmd_import_dsc { $dscdata = do { local $/ = undef; ; }; D->error and fail "read $dscfn: $!"; close C; + + # we don't normally need this so import it here + use Dpkg::Source::Package; + my $dp = new Dpkg::Source::Package filename => $dscfn; + { + local $SIG{__WARN__} = undef; + if (!$dp->is_signed()) { + warn "$us: warning: importing unsigned .dsc\n"; + } else { + my $r = $dp->check_signature(); + } + } + parse_dscdata(); my $dgit_commit = $dsc->{$ourdscfield[0]};