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:
parent
e40190cf63
commit
70473cbdd6
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user