mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb/linux.py: Simplify "distro" determination
This fixes an issue on Debian 11 which contains "Debian" in /etc/issue (capital D).
This commit is contained in:
parent
45b2952ed8
commit
09b84c4c2a
@ -76,20 +76,16 @@ def load():
|
||||
except:
|
||||
pass
|
||||
|
||||
distro = distro.lower()
|
||||
|
||||
# Manage distro aliases
|
||||
if distro in ['centos']:
|
||||
distro = 'redhat'
|
||||
elif distro in ['fedora']:
|
||||
if distro_ver < 17:
|
||||
distro = 'redhat'
|
||||
elif distro in ['centos', 'fedora']:
|
||||
distro = 'redhat'
|
||||
elif distro in ['Ubuntu', 'ubuntu', 'MX', 'LinuxMint', 'linuxmint']:
|
||||
elif distro in ['ubuntu', 'mx', 'linuxmint']:
|
||||
distro = 'debian'
|
||||
elif distro in ['Arch']:
|
||||
distro = 'arch'
|
||||
elif distro in ['SuSE']:
|
||||
distro = 'suse'
|
||||
|
||||
variations = {
|
||||
'debian' : { '__bzip2': ('exe', 'required', '/bin/bzip2'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user