/srv/irclogs.ubuntu.com/2018/07/19/#launchpad.txt

=== abrody__ is now known as abrody_
=== Dmitrii-Sh_ is now known as Dmitrii-Sh
=== FourDollars_ is now known as FourDollars
=== beisner_ is now known as beisner
kjackalHi there, the s390x snap builders seem to be missing a package "golang-go" see https://launchpadlibrarian.net/379234951/buildlog_snap_ubuntu_xenial_s390x_etcd_BUILDING.txt.gz . This builds fine on an s390x machine with "snapcraft cleanbuild". How should we address this?14:14
kjackalmight not be only s390x14:17
=== Ionic is now known as Guest31146
cjwatsonkjackal: The builders install everything from the archive(s) that they're pointed to; there is no conception of packages that the builders have or don't have14:32
cjwatsonkjackal: It's quite true that golang-1.9-go isn't in xenial-updates.  You could point this snap at xenial-backports instead, or give it a PPA that provides golang-1.9-go, or (perhaps the simplest option for you, although I'm sure it would require some $PATH tweaks and such) use 'build-snaps: [go/1.9/stable]'14:37
kjackalthank you cjwatson I will give it a try14:51
=== Guest31146 is now known as Ionic
gQuigsteam = launchpad.people(canonical-suppor) #team that doesn't exist19:50
gQuigsteam.is_valid returns 404 error19:50
gQuigsis there a better way to do things conditionally if it exists or not (my next plan is a bunch of try,excepts.. but I'm guessing there is a better way)19:51
nacc(was that a typo (no trailing t))19:51
naccoh i see it's a test :)19:51
naccgQuigs: https://help.launchpad.net/API/Examples19:53
naccgQuigs: says that launchpad.people[canonical-suppr] should effectively return a None-equivalent if not found19:53
gQuigsteam is None, returns False19:56
gQuigsregardless if it's a team that exists or not AFAICT19:57
naccthat doesn't seem right :)19:59
gQuigsswitching it up to launchpad.people['person_name'] gets a backtrace immediately..20:06
naccgQuigs: sorry, might need cjwatson or wgrant to look; IME, the docs have been pretty accurate20:06
naccgQuigs: are you using a logged in lp object?20:07
gQuigsI'm not logged in, using anon at the moment20:09
gQuigsnacc: ^20:10
naccgQuigs: i wonder if you need to be logged in (login_with) rather than anon20:10
naccgQuigs: just based upon the example20:10
gQuigsnacc: doesn't seem to help https://pastebin.ubuntu.com/p/JYqkNqYvdJ/20:14
danialbehzadiHi. I put two apps in my ppa and set one of them as a dependency in control file of the other one like this: traktor (>= 1.4)20:16
danialbehzadiBut when I try to install it, I get this strange error: carburetor : Depends: traktor (>= 1.4) but 1.4-0~201807171920~ubuntu18.04.1 is installed20:16
danialbehzadiI wonder what does it mean…20:16
naccgQuigs: this seems to work? http://paste.ubuntu.com/p/f9xq2DCKbD/20:17
gQuigsnacc: indeed, thanks!20:32
gQuigsstill means the example broke at some point though.. IIUC20:32
naccgQuigs: np! sorry, it's been a bit since i've used lplib -- yeah, i'd see if cjwatson can chime in eventually20:32
wgrantgQuigs: What is the error?20:46
naccwgrant: the example from https://help.launchpad.net/API/Examples at the bottom20:46
naccwgrant: doesn't seem to be returning a False-equivalent object when a person is not found20:46
wgrantdanialbehzadi: '~' is less than the empty string, so 1.4.0~ < 1.420:46
naccbut instead raises a KeyError20:46
naccwgrant: but 1.4-0 should be after 1.420:47
wgrantnacc: Hm, I doubt that ever worked20:47
naccwgrant: yeah possibly not :)20:47
wgrantnacc: No20:47
wgrantThe Debian revision defaults to 0 if not specified20:47
naccoh duh!20:47
naccdanialbehzadi: --^ that's your bug20:48
naccshould be able to see with dpkg --compare-versions20:48
wgrant'Then the initial part of the remainder of each string which consists entirely of digit characters is determined. The numerical values of these two parts are compared, and any difference found is returned as the result of the comparison. For these purposes an empty string (which can only occur at the end of one or both version strings being compared) counts as zero. '20:48
wgrant(from http://www.chiark.greenend.org.uk/doc/debian-policy/policy.html/ch-controlfields.html#s-f-Version)20:48
naccwgrant: thanks for the reminder!20:48
danialbehzadinacc wgrant: Oh, Thanks. But it seems strange to me yet 😅20:53
naccdanialbehzadi: your version string doesn't satisfy the requirement (which is equivalent to >= 1.4-020:53
naccdanialbehzadi: and your version is 1.4-0~ which always sorts *before* 1.4-020:53
danialbehzadinacc: So, what should I put in control file to accept 1.4-0~? 🤔20:55
wgrant> 1.4~20:55
wgrantShould work20:55
naccdanialbehzadi: --^20:55
danialbehzadiwgrant: ha… Thanks20:55
wgrantOr 1.4-0~ maybe20:55
wgrantThey should be equivalent I think, but 1.4-0~ is more explicit20:56
wgrantEr what am I talking about, it has to be the latter20:57
wgrant> 1.4~ would allow eg. 1.4~beta120:57

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