=== maclin1 is now known as maclin === chihchun_afk is now known as chihchun === JanC is now known as Guest54020 === JanC_ is now known as JanC === chihchun is now known as chihchun_afk [14:57] 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. === chihchun_afk is now known as chihchun [15:14] juergh: i believe the URLs are a bit hidde, but https://launchpad.net/~USER/+archive/ubuntu/PPA_NAME/+files/FILENAME [15:14] juergh: you get the filenames from the API call you did [15:25] 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] 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] juergh: the implementation is https://git.launchpad.net/usd-importer/tree/gitubuntu/importppa.py === chihchun is now known as chihchun_afk [16:13] 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] kwmonroe: It looks like you aren't always sending the username to the proxy [16:17] 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] compare and contrast a working hit from the same build: [16:18] 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] 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] 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] (you can see SNAPBUILD-83382-1506007468 passed as http.proxyUser in your build) [16:23] so I guess something in the insinnards of maven loses that sometimes) [16:23] 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] sorry, extreme lag [16:23] I banged my head against this in ant for quite a while and I'm afraid I gave up [16:23] I suspect https://code.launchpad.net/~cjwatson/launchpad-buildd/local-snap-proxy/+merge/322545 is the only sane answer [16:25] heh, roger that cjwatson -- i appreciate the help and digging through those logs! === chihchun_afk is now known as chihchun [17:41] hey guys [21:26] hi, could someone please help on launchpadlib? [21:26] i'm getting the uncorrect date [21:27] for bug 1705594, task.date_fix_committed returns 2017-09-19 which is not correct [21:27] bug 1705594 in MAAS "[2.2] rackd errors after fresh install" [Critical,Incomplete] https://launchpad.net/bugs/1705594 [21:28] it is incomplete and the fix_commited date should be None [21:41] alai: those attributes are pretty weird; can you just use a different approach, like the bug activity collection? [21:42] alai: please file a bug against Launchpad itself about the odd data in this case, though [21:42] (it's not launchpadlib's fault - that's just a thin layer talking to the webservice) [22:06] cjwatson, https://bugs.launchpad.net/launchpad/+bug/1718795 [22:06] Ubuntu bug 1718795 in Launchpad itself "launchpadlib returns incorrect dates" [Undecided,New] [22:14] thanks