Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Lib/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def _dist_try_harder(distname, version, id):
# and http://www.die.net/doc/linux/man/man1/lsb_release.1.html

_supported_dists = (
'SuSE', 'debian', 'fedora', 'redhat', 'centos',
'SuSE', 'debian', 'fedora', 'redhat', 'centos', 'euleros',
'mandrake', 'mandriva', 'rocks', 'slackware', 'yellowdog', 'gentoo',
'UnitedLinux', 'turbolinux', 'arch', 'mageia')

Expand Down Expand Up @@ -367,6 +367,8 @@ def _linux_distribution(distname, version, id, supported_dists,
return distname, version, id
etc.sort()
for file in etc:
if os.path.islink(os.path.join(_UNIXCONFDIR, file)):
continue
m = _release_filename.match(file)
if m is not None:
_distname, dummy = m.groups()
Expand Down