mirror of
https://git.rtems.org/rtems-tools/
synced 2025-06-02 11:33:08 +08:00
rtemstoolkit: Support more Linux distributions
The platform.dist() function is not always available.
This commit is contained in:
parent
2444acb0ad
commit
00b9f1d825
@ -83,8 +83,9 @@ def overrides():
|
||||
try:
|
||||
distro = platform.dist()[0]
|
||||
distro_ver = float(platform.dist()[1])
|
||||
except ValueError:
|
||||
except (AttributeError, ValueError):
|
||||
# Non LSB distro found, use failover"
|
||||
distro = ''
|
||||
pass
|
||||
|
||||
# Non LSB - fail over to issue
|
||||
|
Loading…
x
Reference in New Issue
Block a user