Changeset 49c668c in rtems-source-builder


Ignore:
Timestamp:
Apr 30, 2013, 7:23:18 AM (6 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
cb5fc2c
Parents:
1aade53
Message:

Fix the dist_ver bug. Covert the string to an int.

File:
1 edited

Legend:

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

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