Changeset 00b9f1d in rtems-tools


Ignore:
Timestamp:
Mar 5, 2020, 9:25:38 AM (4 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
c7315a2
Parents:
2444acb
git-author:
Sebastian Huber <sebastian.huber@…> (03/05/20 09:25:38)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/05/20 09:26:15)
Message:

rtemstoolkit: Support more Linux distributions

The platform.dist() function is not always available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/linux.py

    r2444acb r00b9f1d  
    8484        distro = platform.dist()[0]
    8585        distro_ver = float(platform.dist()[1])
    86     except ValueError:
     86    except (AttributeError, ValueError):
    8787        # Non LSB distro found, use failover"
     88        distro = ''
    8889        pass
    8990
Note: See TracChangeset for help on using the changeset viewer.