/srv/irclogs.ubuntu.com/2014/07/18/#launchpad-dev.txt

=== Ursinha-afk is now known as Ursinha
=== wgrant_ is now known as wgrant
=== wallyworld__ is now known as wallyworld
=== wallyworld__ is now known as wallyworld
xnoxI don't think i've setup ubuntu distribution correctly in my lxc launchpad10:20
xnoxsince it has no suites & thus no arches.10:21
cjwatsonxnox: https://dev.launchpad.net/Soyuz/HowToUseSoyuzLocally10:23
wgrantxnox: The sampledata is... somewhat corrupt, ancient, incomplete, and otherwise undesirable.10:23
cjwatsonParticularly soyuz-sampledata-setup10:23
wgrantxnox: There's utilities/soyuz-sampledata-setup.py to make it sane.10:23
wgrantRight, that.10:23
cjwatsonThat should be pretty much up to date - I followed that procedure when testing livefs10:23
cjwatson(and updated it slightly)10:23
xnoxhm. so adding more debug it looks like it knows about releases/suites/pockets10:26
xnoxit's just i don't have anything published =)10:26
xnox./scripts/publish-distro.py -vv -C10:26
cjwatsonFWIW, while there certainly are cases where I've wanted to actually run a local Launchpad instance and it's good not to have to do it in a rush, for the things I've been doing I've found it's better not to have it be my first resort for testing10:27
cjwatson(I couldn't have done all the livefs integration without it, but for the sorts of things I do that was the first time in about a year)10:28
xnoxright. let me fake it. So i'm just copying a mock archive into /var/tmp/archive/ubuntu/ (e.g. an rsync of a smallish ppa)10:29
wgrantxnox: What're you trying to do?10:29
xnoxwhich should be enough to run ./cronscripts/generate-contents-files.py10:29
xnoxand it looks like it is =)10:29
cjwatsonbin/test -vvct generate_contents_files10:30
cjwatsonis at least slightly useful and you'll probably need to extend it anyway :)10:31
xnoxyeah, i have run those already as well. But e.g. wanted to be able to run stuff by hand as well.10:31
cjwatsonFair enough10:31
xnoxcause e.g. i want it to be a larges repository to benchmark improvements, if i can make any =)10:32
cjwatsonYeah, that might be worthwhile for the try-not-to-compute-everything-twice bug10:34
cjwatsonBTW http://people.canonical.com/~ubuntu-archive/apt-mirror.cgi/1405620000/dists/utopic/main/binary-i386/Packages.bz2 (etc.) is now a link10:35
cjwatson*now a thing10:35
xnox=)))) nice10:35
cjwatsonHopefully it's not a complete security nightmare ... haven't hooked up any of the magic pool traversal stuff because don't have uwsgi etc. there and didn't want this to be an epic journey10:35
cjwatsonSo I cloned-and-hacked apt-mirror-web into a trivial CGI script instead10:35
cjwatsonIt'll 404 practically anything it doesn't like10:36
xnoxcause go is for kids ;)10:36
cjwatsonI only care about it for derive-distribution anyway :-)10:37
xnoxright.10:37
xnoxwhere is source for it?10:38
cjwatsonhm, let me push it to github or something10:38
cjwatson*mutter*10:38
xnoxi've checked people.canonical.com:~ubuntu-archive/public_html and it's obviously not there any more =)10:39
cjwatsonxnox: https://github.com/cjwatson/apt-mirror/tree/ubuntu-archive10:39
cjwatsonreal web developers please try not to laugh too loudly10:40
* wgrant plays pin the security hole on the CGI script.10:40
cjwatsonGrr, bz2.BZ2File in 2.7 doesn't accept file objects, seriously?10:49
cjwatsonhate Python 210:50
* xnox targeted python3 only....10:57
cjwatsonthis is for derive-distribution; don't want to rely on having your fancy new launchpadlib on my system by next week11:06
xnox=/11:09
xnoxyeah, i think everything is in trusty to run apt-mirror, python3, python3-cherrypy, python3-uwsgi et.al.11:09
xnoxdoesn't use launchpadlib direct, just constructs restful url to download things.11:09
* cjwatson considers derive-distribution's package selection11:29
cjwatsonIt occurs to me: I've got historical Sources/Packages, and I can get the seed output at a given time as well; I think the right answer is to do a time-travelled germinate run against a nominated list of seeds + optional extra packages11:30
cjwatsonAnd then copy the closure of resulting sources11:30
cjwatsonPossibly germinate on all relevant architectures, in fact, but that's fine, I have the technology11:30
cjwatsonI can even make use of the never-used facility in germinate to plug in an alternative archive representation, which is basically perfect for this11:32
cjwatsonMaybe double-check against actual image contents too11:39
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
cjwatsonbzr's date revisionspec is irritating - no way to get the state of the branch *at* a particular date, you can only ask for the first revision after that date, and that breaks if the date in question is after the last commit on the branch15:51
cjwatsonWill have to figure it out by hand I guess15:52
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
james_w`cjwatson: can you combine with before: to get the behaviour that you want?20:26
james_w`it might get you the state at that date, but probably changes the failure mode to when the first revision is after the date20:27
cjwatsonjames_w`: I've already done it differently, but before:date:... was where I started22:02
cjwatsonIt evidently tries to resolve date: first, fails to do so, and then gives up on the whole revisionspec; it makes sense in a piecewise way but isn't very convenient all round22:02
cjwatsonI just did a crude "bzr log" parser instead and will no doubt pay the karma cost at some point.  This doesn't have to be fast or especially maintainable22:03

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!