[14:57] <juergh> how can I download a source package from a private PPA? I can authenticate and get the published sources using archive.getPublishedSources but can't figure out how to actually download the bits.
[15:14] <nacc> juergh: i believe the URLs are a bit hidde, but https://launchpad.net/~USER/+archive/ubuntu/PPA_NAME/+files/FILENAME
[15:14] <nacc> juergh: you get the filenames from the API call you did
[15:25] <juergh> nacc, thanks but how do I download the files? I can construct the URL which works in a browser but if I do a simple urllib2.urlopen on that URL I get a 404 error. Which makes me think I need to either a) do some auth with urllib or b) us a launchpadlib helper/method.
[15:27] <nacc> juergh: i'm trying to get this fixed urgently, as our snap is busted, but git-ubuntu has an importppa function that will take a PPA and import it to git
[15:27] <nacc> juergh: the implementation is https://git.launchpad.net/usd-importer/tree/gitubuntu/importppa.py
[16:13] <kwmonroe> yo cjwatson, i setup my env like you suggested yesterday (ufw deny outgoing bits except those through my auth proxy).  i still can't figure out why lp builders return 403 while my local setup works.  could you do me a favor and grep for proxy hits to maven.org from the last hour?  here's an example succesful hit for my local build while the lp builders 403:  http://paste.ubuntu.com/25587006/
[16:17] <cjwatson> kwmonroe: It looks like you aren't always sending the username to the proxy
[16:17] <cjwatson> snap-proxy/squid/access.log:10.222.146.106 - - [21/Sep/2017:15:36:52 +0000] "HEAD http://repo.apache.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.jar HTTP/1.1" 403 457 "-" "Apache Ivy/2.2.0" TCP_DENIED:HIER_NONE
[16:18] <cjwatson> compare and contrast a working hit from the same build:
[16:18] <cjwatson> snap-proxy/squid/access.log:10.222.146.106 - SNAPBUILD-83382-1506007468 [21/Sep/2017:15:36:40 +0000] "GET http://repo.apache.maven.org/maven2/xmlenc/xmlenc/0.52/xmlenc-0.52.pom HTTP/1.1" 200 1422 "-" "Wget/1.17.1 (linux-gnu)" TCP_MISS:HIER_DIRECT
[16:19] <kwmonroe> yeah cjwatson - that 2nd one works because that's me doing a wget to make sure i'm not crazy:  https://github.com/juju-solutions/snap-pig/blob/master/snap/snapcraft.yaml#L209
[16:20] <kwmonroe> so i'm guessing there's something about ant that isn't passing along the proxy config correctly.  still, i'm troubled by not being able to repro in my local squid env.  it's rather painful to commit / cross fingers / request lp builds.
[16:23] <cjwatson> (you can see SNAPBUILD-83382-1506007468 passed as http.proxyUser in your build)
[16:23] <cjwatson> so I guess something in the insinnards of maven loses that sometimes)
[16:23] <cjwatson>  like I say, Java 's HTTP stack by default only does anything with authed proxies if you specifically set up a java.net.Authenticator
[16:23] <cjwatson> sorry, extreme lag
[16:23] <cjwatson> I banged my head against this in ant for quite a while and I'm afraid I gave up
[16:23] <cjwatson> I suspect https://code.launchpad.net/~cjwatson/launchpad-buildd/local-snap-proxy/+merge/322545 is the only sane answer
[16:25] <kwmonroe> heh, roger that cjwatson -- i appreciate the help and digging through those logs!
[17:41] <iliv> hey guys
[21:26] <alai> hi, could someone please help on launchpadlib?
[21:26] <alai> i'm getting the uncorrect date
[21:27] <alai> for bug 1705594, task.date_fix_committed returns 2017-09-19 which is not correct
[21:28] <alai> it is incomplete and the fix_commited date should be None
[21:41] <cjwatson> alai: those attributes are pretty weird; can you just use a different approach, like the bug activity collection?
[21:42] <cjwatson> alai: please file a bug against Launchpad itself about the odd data in this case, though
[21:42] <cjwatson> (it's not launchpadlib's fault - that's just a thin layer talking to the webservice)
[22:06] <alai> cjwatson, https://bugs.launchpad.net/launchpad/+bug/1718795
[22:14] <cjwatson> thanks