/srv/irclogs.ubuntu.com/2017/06/22/#launchpad.txt

CoderEuropegood morning hobbits06:25
CoderEuropeHow do I contribute to English Canadian on launchpad ?08:49
CoderEuropeWhat is the bug list for ubuntuOS artful aadrvark 17.10 ?09:25
tshirtmanhello, i messed up updating the ppa o09:46
tshirtmanf our project, and pushed with the wrong version in changelog09:46
tshirtman(10.0 instead of 1.10.0) now i'd like to correct it, but build got rejected because it's lower than the previous successful build09:46
tshirtman(kivy-stable ppa)09:47
tshirtmanany insight of how to correct that?09:47
tshirtmanhm previous related questions are not encouraging https://answers.launchpad.net/launchpad/+question/126403 https://answers.launchpad.net/launchpad/+question/12218 https://answers.launchpad.net/launchpad/+question/1961409:52
tshirtmani guess i'll ask for clearing the wrongly build package09:52
tshirtman(https://answers.launchpad.net/launchpad/+question/644496)09:57
cjwatsonI've answered your question there.10:08
tshirtmanthanks a lot, found the page :)10:18
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== JanC_ is now known as JanC
nacccjwatson: what is the default sort order for getPublishedSources if order_by_date is not set? is it in version order (newest to oldest)?16:01
cjwatsonnacc: source package name (lexicographical), SPPH ID (highest to lowest), version (highest to lowest, omitted if you specify a version)16:07
nacccjwatson: thanks! is that specified somewhere? i'm going to be leveraging that in our code and want to document it, if possible16:09
cjwatsonnacc: only in code at the moment ...16:16
cjwatsonnacc: are you sure you want to rely on this?  tell me more about what you're doing16:16
rbasakWon't SPPH ID be always unique, and so version based sorting will never happen? Or am I missing something?16:16
cjwatsonrbasak: I think the version fallback is indeed probably pointless, but it's there in the code at the moment16:17
cjwatsonoh, I quoted it wrongly16:17
cjwatsonit's actually source package name (lexicographical), version (highest to lowest, omitted if you specify a version), SPPH ID (highest to lowest)16:17
cjwatsonthat makes more sense16:17
cjwatsonnacc: ^-16:17
rbasakAh. Thanks!16:17
rbasakI'm not sure of the exact logic nacc's relying on so I'll leave it to him to answer your question.16:18
cjwatson(a given source package can be copied, which creates a new SPPH, so the effect is that newer copies of the same package show up first)16:18
rbasakI know we were looking for version-based sorting. I'm not sure exactly why.16:18
rbasakPossibly to walk backwards to find something that has a matching orig tarball or something.16:18
nacccjwatson: well for the purposes of our 'dpkg-buildpackage -S' wrapper, I want to find the most recent version (if it exists) that is the same upstream version to grab the orig tarball for. But I want to shortcut out of the search (as it can take a while) if the upstream version we are building is newer than any published version (e.g., for a uupdate)16:18
cjwatsonI guess it indeed doesn't make sense to do your own sort then16:19
naccI don't need it to be in version order for the general case, and really don't want it that way for the general case as we're often based upon the publishing order (e.g., a fix to the most recent xenial publish). But this one case (uupdate) is special :)16:19
cjwatsonIt's unlikely to change, but it would probably be a good idea to file a bug (or just an MP ...) to document the current sort order16:19
nacccjwatson: ack, will do16:19
cjwatsonYour general case basically sounds like order_by_date16:20
nacccjwatson: yep, and that's what we were using16:20
nacccjwatson: *are using16:20
cjwatsonwhich is technically Desc(SPPH.datecreated), Desc(SPPH.id), but should normally amount to the same thing except in edge cases of nearby transactions16:20
nacccjwatson: yep, makes sense16:21
nacccjwatson: unless you can think of a saner way for me to query launchpad for (is my upstream version newer than any published upstream version in (ubuntu, debian))16:22
cjwatsonFWIW, on the teach-to-fish principle, you can find this in lib/lp/soyuz/model/archive.py and then grep for def getPublishedSources16:22
nacccjwatson: excellent, thanks!16:23
cjwatsonI don't think LP has any more immediate way to do that at the moment16:23
cjwatsonthat I can think of anyway16:23
nacccjwatson: sure, that's fine -- I appreciate you taking the time to teach this fisherman-wannabe16:23
cjwatsonthe interface declaration that shows up in the apidoc and such is in lib/lp/soyuz/interfaces/archive.py16:23
cjwatsonthat's a general pattern for most things16:24
=== chihchun is now known as chihchun_afk
nacccjwatson: thanks! https://code.launchpad.net/~nacc/launchpad/document-getpublishedsources-sort/+merge/32617719:11
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
cjwatsonnacc: merged, thanks23:46
nacccjwatson: thank you!23:47
naccrbasak: --^ fyi (public documentation, if it helps with your review for the tooling change)23:47
rbasakThanks!23:57

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