osdict: rename "unix" type to "bsd"

It really holds BSD OSes, so rename it to match the reality.
This commit is contained in:
Pino Toscano
2017-04-24 16:20:42 +02:00
committed by Cole Robinson
parent 0eabf343ee
commit fa9ee6cd94
2 changed files with 3 additions and 3 deletions

View File

@@ -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"),
}

View File

@@ -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"