[backportpackage] Provide better error message if GPG key is not found

Bug #1247539 reported by anatoly techtonik
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

$ backportpackage -u ppa:techtonik/backports -s vivid -d trusty mercurial
...
dpkg-buildpackage: full upload (original source is included)
 signfile mercurial_3.1.2-2~ubuntu14.04.1~ppa1.dsc anatoly techtonik <techtonik@UBiX>
gpg: skipped "anatoly techtonik <techtonik@UBiX>": secret key not available
gpg: /tmp/debsign.qzBHNjqh/mercurial_3.1.2-2~ubuntu14.04.1~ppa1.dsc: clearsign failed: secret key not available
debsign: gpg error occurred! Aborting....
backportpackage: Error: debsign returned 2.

It is not clear what to do after this message. The problem is that GPG constructs the name as login@HOST instead of using my <email address hidden>
credentials.

It would be much more friendly if backportpackage proposed to check
your name and email on design 2 error.

description: updated
description: updated
summary: - [backportpackage] Error: debsign returned 2. Now what?
+ [backportpackage] Provide better error message if GPG key is not found
Revision history for this message
anatoly techtonik (techtonik) wrote :

The hack/workaround to pass this (found after 7 hours) is to supply UBUMAIL in command line:

$ UBUMAIL=`bzr whoami` ./backportpackage -u ppa:techtonik/backports -s vivid -d trusty mercurial

Not a really pleasant user experience.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Dan Streetman (ddstreet) wrote :

please reopen if this problem still exists

Changed in ubuntu-dev-tools (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.