http://www.freedesktop.org/software/systemd/man/os-release.html
is a recent standard describing release information for an operating system. platform.linux_distribution() should know about it.
- should that be the first file to be parsed?
- names returned for the ID are different than the ones
returned from /etc/lsb-release. The os-release thing
only allows lower case letters for the ID (e.g. Ubuntu
vs. ubuntu). The list of _supported_distros may
need to list both.
- take the version from VERSION_ID
- there is no real attribute for the code name. The closest
maybe is VERSION. |