/srv/irclogs.ubuntu.com/2020/07/22/#ubuntu-devel.txt

=== ebarretto_ is now known as ebarretto
=== pieq_ is now known as pie
=== pie is now known as pieq
rbalintmwhudson, pam is packaged oddy https://salsa.debian.org/vorlon/pam/-/merge_requests/110:05
mwhudsonrbalint: huh10:07
mwhudsonrbalint: it seems unevenly strange as well, i had to poke dpkg-source with a stick to make it behave with the xenial source package10:07
rbalintmwhudson, yes, i had the same experience when i had to update the package  :-\10:20
Laneyhow does update-manager get triggered to appear when it needs to?11:00
Laneyit doesn't appear to be done directly, does some other component poke it?11:00
LaneyI just want to be able to tickle that trigger manually so I can pretend it was automatic11:02
Laneyok update-manager --no-update11:04
xnoxdoko:  tlp should pop up as MIR, let me handle opening MIR ticket for it and subscribing the right people to it.12:21
=== pitti is now known as pitti`
=== pitti` is now known as pitti
seb128Laney, iirc update-notifier does spawn it13:28
Laneyyeah13:28
Laneymerci for the confirmation13:28
tsimonq2ddstreet: New shiny: https://launchpad.net/ubuntu/+source/software-properties/0.99.013:57
tsimonq2ddstreet: I followed up on the ML as well.13:57
tsimonq2Thank you for writing tests. Unfortunately, one failed. :P13:58
tsimonq2I can fix it since it's just pyflakes.13:59
tsimonq2 test_pyflakes3_clean (tests.test_pyflakes.TestPyflakesClean) ... ok14:14
tsimonq2Sweet.14:14
rbasak$ LC_ALL=en_GB.UTF-8 python3 -c 'import locale;print(locale.getlocale(locale.LC_TIME))'14:46
rbasak(None, None)14:46
rbasakWhy? Shouldn't that be ('en_GB', 'UTF-8')?14:46
rbasakI'm trying to write an assertion to ensure that LC_TIME is C.UTF-8. Help?14:46
tsimonq2rbasak: $ LC_ALL=en_GB.UTF-8 python3 -c 'import locale;print(locale.getlocale())'14:53
tsimonq2('en_GB', 'UTF-8')14:53
tsimonq2$ python3 -c 'import locale;print(locale.getlocale())'14:53
tsimonq2('en_US', 'UTF-8')14:53
tsimonq2$ LC_ALL=en_GB.UTF-8 python3 -c 'import locale;print(locale.LC_TIME)'14:53
tsimonq2214:53
rbasaktsimonq2: what does '2' mean?14:56
tsimonq2rbasak: Very good question. I'm trying to figure that out.14:56
tsimonq2https://docs.python.org/3/library/locale.html#locale.LC_TIME says "Locale category for the formatting of time."14:56
tsimonq2But where are the categories? Hm.14:56
rbasakI get (None, None)14:57
tsimonq2print(locale.LC_TIME) =/ print(locale.getlocale(locale.LC_TIME))14:59
tsimonq2locale.getlocale() is likely what you're looking for.14:59
tsimonq2$ LC_ALL=C.UTF-8 python3 -c 'import locale;print(locale.getlocale())'15:03
tsimonq2('en_US', 'UTF-8')15:03
tsimonq2...oh?15:03
rbasakYeah that happens too15:03
rbasaklocale.getlocale() won't necessarily tell me about a differently set LC_TIME though15:03
tsimonq2I mean, you could just get the env var. :P15:04
rbasakI want to assert how Python's datetime.strptime will behave15:04
rbasakIt seems to me that Python's behaviour will not follow the env var!15:04
cjwatsonrbasak: You need locale.setlocale(locale.LC_ALL, '') first to enable localisation15:25
cjwatson$ LC_ALL=en_GB.UTF-8 python3 -c 'import locale; locale.setlocale(locale.LC_ALL, ""); print(locale.getlocale(locale.LC_TIME))'15:25
cjwatson('en_GB', 'UTF-8')15:25
Laneybdmurray: question about teams which can own packages in main - where is that defined? is there just one place?15:26
cjwatson(It's the same in C.  Localisation isn't generally switched on until the process has called setlocale(LC_ALL, "").)15:28
rbasakcjwatson: thanks, but I tried:15:45
rbasak$ LC_ALL=en_GB.UTF-8 python3 -c 'import locale; locale.setlocale(locale.LC_ALL, ''); print(locale.getlocale(locale.LC_TIME))'15:45
rbasak(None, None)15:45
rbasakI don't see a difference between that and your suggestion15:45
rbasakOh, but yours does work15:46
rbasakAh15:46
rbasakBecause my quotes were broken15:46
rbasakThanks :)15:46
bdmurrayLaney: https://bazaar.launchpad.net/~ubuntu-archive/ubuntu-archive-tools/trunk/view/head:/package-subscribers#L11615:48
rbasakSo in that case, if I want to assert that strptime will behave as if in the C.UTF-8 locale, I can run _only_ locale.getlocale(locale.LC_TIME), right? And if the output is (None, None) OR ('C', 'UTF-8') [that one never seems to happen] OR ('en_US', 'UTF-8') then I'm good?15:48
rbasakbryyce: ^15:48
Laneybdmurray: sweet15:49
bdmurrayLaney: did you see https://code.launchpad.net/~brian-murray/britney/britney1-backlog-report-update/+merge/387796?15:50
Laneynope15:50
Laneylemme see15:50
Laneyoh my15:51
Laneythis thing should use the yaml!15:51
bdmurrayProbably but we are writing zeroes to a KPI right now.15:52
Laneyyeah, ok, lemme look15:52
Laneybdmurray: done, thanks for the nudge15:58
LaneyI think that should get pulled automatically15:58
bryycerbasak, ah, got it sorted?15:59
rbasakbryyce: I think so. I just this moment pushed a replacement branch that I think should be acceptable.16:00
rbasakThanks to Colin for clarifying how it's supposed to work.16:00
bryycerbasak, great, will take a look at the MP16:02
bryycerbasak, MP reviewed16:57
=== ijohnson is now known as ijohnson|lunch
rbasakThanks!17:06
=== ijohnson|lunch is now known as ijohnson

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