mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
osdict: rename "unix" type to "bsd"
It really holds BSD OSes, so rename it to match the reality.
This commit is contained in:
committed by
Cole Robinson
parent
0eabf343ee
commit
fa9ee6cd94
@@ -975,11 +975,11 @@ class vmmCreate(vmmGObjectUI):
|
||||
# Pretty names for OSes. If a new OS is not found here,
|
||||
# its capitalized name is used.
|
||||
oses = {
|
||||
"bsd": _("BSD"),
|
||||
"generic": _("Generic"),
|
||||
"linux": _("Linux"),
|
||||
"other": _("Others"),
|
||||
"solaris": _("Solaris"),
|
||||
"unix": _("UNIX"),
|
||||
"windows": _("Windows"),
|
||||
}
|
||||
|
||||
|
||||
@@ -244,7 +244,7 @@ class _OSDB(object):
|
||||
return osname
|
||||
|
||||
def list_types(self):
|
||||
approved_types = ["linux", "windows", "unix",
|
||||
approved_types = ["linux", "windows", "bsd",
|
||||
"solaris", "other", "generic"]
|
||||
return approved_types
|
||||
|
||||
@@ -421,7 +421,7 @@ class _OsVariant(object):
|
||||
return "solaris"
|
||||
|
||||
if self._family in ['openbsd', 'freebsd', 'netbsd']:
|
||||
return "unix"
|
||||
return "bsd"
|
||||
|
||||
return "other"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user