]> git.ipfire.org Git - thirdparty/systemd.git/commit
man: add example os-release mangling in python
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 20 May 2021 18:00:18 +0000 (20:00 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 21 May 2021 14:33:04 +0000 (16:33 +0200)
commit3ca606d103cb9c4011cfcb1d377b6749fb73aaec
tree267b4d54a33ffd91749e1f2802a96e88abb69770
parente839ebe5511028f6032ae53ebb43601c1f4624be
man: add example os-release mangling in python

This is also not entirely obvious. I think the code I came
up with is pretty elegant ;] The final part of of the code that makes
use of the parsed data is kept very similar to the shell code on purpose,
even though it could be written a bit more idiomatically.
man/check-os-release.py [new file with mode: 0644]
man/os-release.xml