[New-bugs-announce] [issue17762] platform.linux_distribution() should honor /etc/os-release

Matthias Klose report at bugs.python.org
Tue Apr 16 17:01:08 CEST 2013


New submission from Matthias Klose:

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.

----------
components: Library (Lib)
messages: 187089
nosy: doko
priority: normal
severity: normal
stage: needs patch
status: open
title: platform.linux_distribution() should honor /etc/os-release
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17762>
_______________________________________


More information about the New-bugs-announce mailing list