summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-03-05 10:25:38 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-03-05 10:26:15 +0100
commit00b9f1d825b91700a06a1979efd34a5313c73e44 (patch)
tree12b8115791f253d50ae23c75db12d9b948ff64b8
parentAdd print statement similar to the original mkimage. (diff)
downloadrtems-tools-00b9f1d825b91700a06a1979efd34a5313c73e44.tar.bz2
rtemstoolkit: Support more Linux distributions
The platform.dist() function is not always available.
-rw-r--r--rtemstoolkit/linux.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rtemstoolkit/linux.py b/rtemstoolkit/linux.py
index 7e45409..1b55655 100644
--- a/rtemstoolkit/linux.py
+++ b/rtemstoolkit/linux.py
@@ -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