From: Ian Jackson Date: Mon, 4 Aug 2014 01:05:10 +0000 (+0100) Subject: Improve error message for .dsc parsing failures more generally. X-Git-Tag: debian/0.22~12 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=0ebf9dfcc7a8c45e3b8b2db4a711b7deeff7f8bc Improve error message for .dsc parsing failures more generally. --- diff --git a/debian/changelog b/debian/changelog index eccb21aa..bf138349 100644 --- a/debian/changelog +++ b/debian/changelog @@ -35,6 +35,7 @@ dgit (0.22~experimental1) experimental; urgency=low (and put an appropriate caveat in the manpage). Closes:#740687. * Improve error message for .dsc having already been signed (iff using libdpkg-perl 1.17.x) + * Improve error message for .dsc parsing failures more generally. Major new feature, currently stalled awaiting server infrastructure: * dgit-repos-server: New program for receiving signed-tag-based diff --git a/dgit b/dgit index ebeb8807..b2426467 100755 --- a/dgit +++ b/dgit @@ -603,7 +603,7 @@ sub parsecontrolfh ($$;$) { $opts{allow_pgp}= $allowsigned || !$dpkgcontrolhash_noissigned; print STDERR Dumper(\%opts); $c = Dpkg::Control::Hash->new(%opts); - $c->parse($fh) or die "parsing of $desc failed"; + $c->parse($fh,$desc) or die "parsing of $desc failed"; last if $allowsigned; last if $dpkgcontrolhash_noissigned; my $issigned= $c->get_option('is_pgp_signed');