chiark / gitweb /
Improve error message for .dsc parsing failures more generally.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 4 Aug 2014 01:05:10 +0000 (02:05 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 4 Aug 2014 01:05:10 +0000 (02:05 +0100)
debian/changelog
dgit

index eccb21aa9f8a7251d83d466ef47b9a1b1f9a1803..bf1383492e18d6d83b2a6ab3bbf6f7a16f935d61 100644 (file)
@@ -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 ebeb8807b4419ded8d33237d9b09061e9a907d9a..b24264676f23de3e67c5a78592c51b7d6c921982 100755 (executable)
--- 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');