Actually, it looks like the problem is in pycurl, since calling .close()
seems to cause the very next floating point operation to return NaN.
(In the case of add-apt-repository, that floating point operation just
happens to be in the random() call invoked from inside the
tempfile.mkdtemp() function.)
==========================
~$ python
Python 2.7.3 (default, Aug 1 2012, 05:16:07)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycurl, tempfile
>>> def geturl(url):
... curl=pycurl.Curl()
... curl.setopt(pycurl.URL,url)
... curl.perform()
... print
... print "before:", 1.0/2, 1.0/2
... curl.close()
... print "after:", 1.0/2, 1.0/2
... print tempfile.mkdtemp()
...
>>>
>>> geturl("https://launchpad.net/api/")
Object: <lp.services.webapp.servers.WebServiceClientRequest instance
URL=https://launchpad.net>, name: ''
before: 0.5 0.5
after: nan 0.5
/tmp/tmplHPMk4
==========================
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1063350
Title:
add-apt-repository and apt-add-repository fails
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1063350/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs