Change how we detect sle15 from /etc/issue

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=431
This commit is contained in:
Charles Arnold 2018-07-17 15:30:34 +00:00 committed by Git OBS Bridge
parent e40190cf63
commit 70473cbdd6

View File

@ -37,14 +37,14 @@ Index: virt-manager-1.5.1/virtManager/create.py
+ os_ver = "opensuse" + parts[3] + os_ver = "opensuse" + parts[3]
+ return 'linux', os_ver + return 'linux', os_ver
+ return 'linux', 'opensuse42.2' + return 'linux', 'opensuse42.2'
+ if "SUSE Linux Enterprise 15" in line: + if "SUSE Linux Enterprise Server 15" in line:
+ return 'linux', ('sle15' + _lookup_sp(line)) + return 'linux', ('sle15' + _lookup_sp(line))
+ if "SUSE Linux Enterprise Server 12" in line: + if "SUSE Linux Enterprise Server 12" in line:
+ return 'linux', ('sles12' + _lookup_sp(line)) + return 'linux', ('sles12' + _lookup_sp(line))
+ if "SUSE Linux Enterprise Server 11" in line: + if "SUSE Linux Enterprise Server 11" in line:
+ return 'linux', ('sles11' + _lookup_sp(line)) + return 'linux', ('sles11' + _lookup_sp(line))
+ if "SUSE Linux Enterprise Desktop 15" in line: + if "SUSE Linux Enterprise Desktop 15" in line:
+ return 'linux', ('sled15' + _lookup_sp(line)) + return 'linux', ('sle15' + _lookup_sp(line))
+ if "SUSE Linux Enterprise Desktop 12" in line: + if "SUSE Linux Enterprise Desktop 12" in line:
+ return 'linux', ('sled12' + _lookup_sp(line)) + return 'linux', ('sled12' + _lookup_sp(line))
+ if "SUSE Linux Enterprise Desktop 11" in line: + if "SUSE Linux Enterprise Desktop 11" in line: