diff options
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -5304,6 +5304,19 @@ sub cmd_import_dsc { $dscdata = do { local $/ = undef; <D>; }; 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]}; |