Changeset 40fec60 in rtems-source-builder


Ignore:
Timestamp:
Apr 25, 2013, 5:30:48 AM (6 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
9cf846d
Parents:
8029c99
Message:

Update for Fedora 17 changes.

File:
1 edited

Legend:

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

    r8029c99 r40fec60  
    7070    # Works for LSB distros
    7171    distro = platform.dist()[0]
     72    distro_ver = platform.dist()[2]
    7273
    7374    # Non LSB - fail over to issue
     
    7677            issue = open('/etc/issue').read()
    7778            distro = issue.split(' ')[0]
     79            distro_ver = issue.split(' ')[2]
    7880        except:
    7981            pass
    8082
    8183    # Manage distro aliases
    82     if distro in ['centos', 'fedora']:
     84    if distro in ['centos']:
    8385        distro = 'redhat'
    84     if distro in ['Ubuntu', 'ubuntu']:
     86    elif distro in ['fedora']:
     87        if distro_ver < 17:
     88            distro = 'redhat'
     89    elif distro in ['centos', 'fedora']:
     90        distro = 'redhat'
     91    elif distro in ['Ubuntu', 'ubuntu']:
    8592        distro = 'debian'
    86     if distro in ['Arch']:
     93    elif distro in ['Arch']:
    8794        distro = 'arch'
    8895
     
    100107                     '__sed':          ('exe',     'required', '/bin/sed'),
    101108                     '__touch':        ('exe',     'required', '/bin/touch') },
     109        'fedora' : { '__chown':        ('exe',     'required', '/usr/bin/chown'),
     110                     '__install_info': ('exe',     'required', '/usr/sbin/install-info') },
    102111        'arch'   : { '__gzip':         ('exe',     'required', '/usr/bin/gzip'),
    103112                     '__chown':        ('exe',     'required', '/usr/bin/chown') },
Note: See TracChangeset for help on using the changeset viewer.