Confirm, reproduced with my own test repository.
Don't know how launchpad does it but get_ppa_info_from_lp returns empty 
"signing_key_fingerprint" field.
If i get the page with the browser result is also empty 
"signing_key_fingerprint":
https://launchpad.net/api/1.0/~{myname}/+archive/{myppa}

So maybe something along these lines will do?

--- ppa.py.org  2011-12-09 22:31:10.755569329 +0200
+++ ppa.py      2011-12-09 22:30:38.475568407 +0200
@@ -94,10 +94,12 @@
         except IndexError as e:
             print "Error: can't find signing_key_fingerprint at %s" % lp_url
             return False
-        res = subprocess.call(
-            ["apt-key", "adv", 
-             "--keyserver", self.keyserver,
-             "--recv", signing_key_fingerprint])
+        res = 0
+        if signing_key_fingerprint:
+            res = subprocess.call(
+                ["apt-key", "adv", 
+                 "--keyserver", self.keyserver,
+                 "--recv", signing_key_fingerprint])
         return (res == 0)


Or should this bug be marked as affecting launchpad itself as problem looks to 
be on the server side api?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883390

Title:
  add-apt-repository crash when adding a ppa repository

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/883390/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to