Changeset a128418 in rtems-source-builder


Ignore:
Timestamp:
Apr 30, 2013, 7:17:11 PM (6 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
2edd4c9
Parents:
9815f5f
Message:

Use float for version number such as CentOS 6.3.

File:
1 edited

Legend:

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

    r9815f5f ra128418  
    7070    # Works for LSB distros
    7171    distro = platform.dist()[0]
    72     distro_ver = int(platform.dist()[1])
     72    distro_ver = float(platform.dist()[1])
    7373
    7474    # Non LSB - fail over to issue
     
    7777            issue = open('/etc/issue').read()
    7878            distro = issue.split(' ')[0]
    79             distro_ver = int(issue.split(' ')[2])
     79            distro_ver = float(issue.split(' ')[2])
    8080        except:
    8181            pass
Note: See TracChangeset for help on using the changeset viewer.