Exemplo n.º 1
0
 def _make_default_variants(self, allvariants):
     # Add our custom generic variant
     o = Libosinfo.Os()
     o.set_param("short-id", "generic")
     o.set_param("name", _("Generic OS"))
     v = _OsVariant(o)
     allvariants[v.name] = v
Exemplo n.º 2
0
 def _os_generic(self):
     if not self.__os_generic:
         # Add our custom generic variant
         o = Libosinfo.Os()
         o.set_param("short-id", "generic")
         o.set_param("name", _("Generic OS"))
         self.__os_generic = _OsVariant(o)
     return self.__os_generic
Exemplo n.º 3
0
 def _os_generic(self):
     if not self.__os_generic:
         # Add our custom generic variant
         o = Libosinfo.Os()
         o.set_param("short-id", "generic")
         o.set_param("name",
                     _("Generic or unknown OS. Usage is not recommended."))
         self.__os_generic = _OsVariant(o)
     return self.__os_generic