Changeset 54a2a5f in rtems-source-builder


Ignore:
Timestamp:
Jun 3, 2013, 7:28:00 AM (6 years ago)
Author:
Dhananjay Balan <mb.dhananjay@…>
Branches:
4.10, 4.11, 4.9, master
Children:
8113b76
Parents:
dd42a94
git-author:
Dhananjay Balan <mb.dhananjay@…> (06/03/13 07:28:00)
git-committer:
Chris Johns <chrisj@…> (06/03/13 22:39:46)
Message:

distro_ver fails on Non-LSB distros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/linux.py

    rdd42a94 r54a2a5f  
    6868
    6969    # Works for LSB distros
    70     distro = platform.dist()[0]
    71     distro_ver = float(platform.dist()[1])
     70    try:
     71        distro = platform.dist()[0]
     72        distro_ver = float(platform.dist()[1])
     73    except ValueError:
     74        # Non LSB distro found, use failover"
     75        pass
    7276
    7377    # Non LSB - fail over to issue
Note: See TracChangeset for help on using the changeset viewer.