make-lp-user is difficult to use with GPG
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
I'm filing this in the hope that part of this diff is useful, since it's what I had to do for make-lp-user to take my GPG key:
diff --git a/configs/
index 4e804544658.
--- a/configs/
+++ b/configs/
@@ -79,8 +79,8 @@ custom_config_id: 1234567890
launch: True
[gpghandler]
-host: keyserver.
-public_host: keyserver.
+host: keyserver.
+public_host: keyserver.
public_https: False
diff --git a/lib/lp/
index bfd039373ed.
--- a/lib/lp/
+++ b/lib/lp/
@@ -473,13 +473,13 @@ def retrieveKey(self, fingerprint):
# key ring, but it needs "speccing"
key = PymeKey(
if not key.exists_
- pubkey = self._getPubKey
+ pubkey = self._getPubKey
key = self.importPubl
if not key.matches(
- with gpgme_timeline(
- ctx.delete(key.key)
- raise GPGKeyMismatchO
+ #with gpgme_timeline(
+ # ctx.delete(key.key)
+ #raise GPGKeyMismatchO
return key
def retrieveActiveK
diff --git a/utilities/
index c856fa37d28.
--- a/utilities/
+++ b/utilities/
@@ -154,9 +154,9 @@ def add_gpg_key(person, fingerprint):
run_
[
- "hkp://
+ "hkp://
- fingerprint,
+ "0x5c7abea20f86
]
)
@@ -189,7 +189,7 @@ def attach_
if len(fingerprints) == 0:
print("No GPG key fingerprints found!")
for fingerprint in fingerprints:
- add_gpg_key(person, fingerprint)
+ add_gpg_key(person, "5C7ABEA20F8630
I went through quite a few local iterations. This actually did the trick and added the user.
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → Low |
I think it might help if we made `make-lp-user` take the keyserver URL as a command-line option. There are situations in which the public keyserver is useful, and situations in which the test keyserver is useful.