my %opts = ('name' => $desc);
$opts{allow_pgp}= $allowsigned || !$dpkgcontrolhash_noissigned;
$c = Dpkg::Control::Hash->new(%opts);
-print STDERR "DCHn\n";
+eval {
+print STDERR "DCHn\n", Dumper(\%opts);
$c->parse($fh,$desc) or die "parsing of $desc failed";
print STDERR "parse\n";
+};
+confess $@ if $@;
last if $allowsigned;
last if $dpkgcontrolhash_noissigned;
my $issigned= $c->get_option('is_pgp_signed');
my $changes = parsecontrol($changesfile,$changesfilewhat);
foreach my $field (qw(Source Distribution Version)) {
+ confess Dumper($changes,$clogp) unless $changes->{$field} &&
+ $clogp->{$field};
$changes->{$field} eq $clogp->{$field} or
fail "changes field $field \`$changes->{$field}'".
" does not match changelog \`$clogp->{$field}'";