From c646a7f57da1b79467aab438ecf1d80d185a0456 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 23 Oct 2016 21:11:37 +0100 Subject: import-dsc: Check the signature Signed-off-by: Ian Jackson --- dgit | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'dgit') diff --git a/dgit b/dgit index ef81599..c6d1be7 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]}; -- cgit v1.2.3