[06:25] good morning hobbits [08:49] How do I contribute to English Canadian on launchpad ? [09:25] What is the bug list for ubuntuOS artful aadrvark 17.10 ? [09:46] hello, i messed up updating the ppa o [09:46] f our project, and pushed with the wrong version in changelog [09:46] (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 build [09:47] (kivy-stable ppa) [09:47] any insight of how to correct that? [09:52] hm 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/19614 [09:52] i guess i'll ask for clearing the wrongly build package [09:57] (https://answers.launchpad.net/launchpad/+question/644496) [10:08] I've answered your question there. [10:18] thanks a lot, found the page :) === chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun === JanC_ is now known as JanC [16:01] cjwatson: what is the default sort order for getPublishedSources if order_by_date is not set? is it in version order (newest to oldest)? [16:07] nacc: source package name (lexicographical), SPPH ID (highest to lowest), version (highest to lowest, omitted if you specify a version) [16:09] cjwatson: thanks! is that specified somewhere? i'm going to be leveraging that in our code and want to document it, if possible [16:16] nacc: only in code at the moment ... [16:16] nacc: are you sure you want to rely on this? tell me more about what you're doing [16:16] Won't SPPH ID be always unique, and so version based sorting will never happen? Or am I missing something? [16:17] rbasak: I think the version fallback is indeed probably pointless, but it's there in the code at the moment [16:17] oh, I quoted it wrongly [16:17] it's actually source package name (lexicographical), version (highest to lowest, omitted if you specify a version), SPPH ID (highest to lowest) [16:17] that makes more sense [16:17] nacc: ^- [16:17] Ah. Thanks! [16:18] I'm not sure of the exact logic nacc's relying on so I'll leave it to him to answer your question. [16:18] (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] I know we were looking for version-based sorting. I'm not sure exactly why. [16:18] Possibly to walk backwards to find something that has a matching orig tarball or something. [16:18] cjwatson: 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:19] I guess it indeed doesn't make sense to do your own sort then [16:19] I 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] It'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 order [16:19] cjwatson: ack, will do [16:20] Your general case basically sounds like order_by_date [16:20] cjwatson: yep, and that's what we were using [16:20] cjwatson: *are using [16:20] which is technically Desc(SPPH.datecreated), Desc(SPPH.id), but should normally amount to the same thing except in edge cases of nearby transactions [16:21] cjwatson: yep, makes sense [16:22] cjwatson: 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] FWIW, on the teach-to-fish principle, you can find this in lib/lp/soyuz/model/archive.py and then grep for def getPublishedSources [16:23] cjwatson: excellent, thanks! [16:23] I don't think LP has any more immediate way to do that at the moment [16:23] that I can think of anyway [16:23] cjwatson: sure, that's fine -- I appreciate you taking the time to teach this fisherman-wannabe [16:23] the interface declaration that shows up in the apidoc and such is in lib/lp/soyuz/interfaces/archive.py [16:24] that's a general pattern for most things === chihchun is now known as chihchun_afk [19:11] cjwatson: thanks! https://code.launchpad.net/~nacc/launchpad/document-getpublishedsources-sort/+merge/326177 === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk [23:46] nacc: merged, thanks [23:47] cjwatson: thank you! [23:47] rbasak: --^ fyi (public documentation, if it helps with your review for the tooling change) [23:57] Thanks!