severity 731635 minor
retitle 731635 want better error messagge for already-signed .dsc/.changes
thanks

Antoine Beaupré writes ("Bug#731635: syntax error in  at line 1: PGP signature 
not allowed here"):
> I am finally trying to upload this package using "dgit push", and
> here's what I get:
...
> $ dgit push
...
> synthesised git commit from .dsc 1.1.1-2
> HEAD is now at 11fb61b
> Use of uninitialized value $_[0] in sprintf at 
> /usr/share/perl5/Dpkg/ErrorHandling.pm line 48, <GEN6> line 1.
> dgit: error: syntax error in  at line 1: PGP signature not allowed here
...
> I think this is because the package files were already signed by
> git-buildpackage+pbuilder (using AUTO_DEBSIGN=yes in pbuilder) during
> the build process - but what's wrong with that?

>From the dgit manpage:

              Tagging, signing and actually uploading should be left  to  dgit
              push.

I will try to arrange for the error message to refer to the manpage.

The reason for this requirement is that if you are intending to use
dgit it does not make sense to sign the package before running dgit
push.  dgit needs to add a field to the .dsc, so it needs to re-sign
it.

If you sign it first, then you are creating two different signed .dsc
files (and perhaps .changes) for the same upload; this is an accident
(wrong thing uploaded) waiting to happen.  So dgit arranges to fail if
your workflow is wrong.

> Note that is also happens if you rerun dgit push after it failed once
> (e.g. because a third party uploaded a tag with the same name on the
> repo you're working on).

The tag that dgit pushes is the Debian version tag.  These should not
be rewritten.  So I think that if this has happened, you need to bump
the version and rebuild.

Thanks,
Ian.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to