Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:branches:openSUSE:Factory:Rings:1-MinimalX
virt-manager
virtinst-add-oracle-linux-support.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File virtinst-add-oracle-linux-support.patch of Package virt-manager
References: bsc#1192238, jsc#SLE-17764 Index: virt-manager-3.3.0/virtinst/install/urldetect.py =================================================================== --- virt-manager-3.3.0.orig/virtinst/install/urldetect.py +++ virt-manager-3.3.0/virtinst/install/urldetect.py @@ -724,6 +724,26 @@ class _OESDistro(_SuseDistro): famregex = ".*Open Enterprise Server.*" +class _OLDistro(_DistroTree): + PRETTY_NAME = "Oracle Linux" + matching_distros = ["ol"] + _variant_prefix = "ol" + + @classmethod + def is_valid(cls, cache): + famregex = ".*Oracle Linux.*" + if cache.treeinfo_family_regex(famregex): + return True + + def _detect_version(self): + if self.cache.treeinfo_version: # pragma: no cover + version, update = self.cache.split_version() + # Beginning with oracle 8 they add an extra '.0' which we ignore + olname = self._variant_prefix + str(version) + "." + str(update) + if OSDB.lookup_os(olname): + return olname + + class _DebianDistro(_DistroTree): # ex. http://ftp.egr.msu.edu/debian/dists/sarge/main/installer-i386/ # daily builds: https://d-i.debian.org/daily-images/amd64/ @@ -950,6 +970,7 @@ def _build_distro_list(osobj): _FedoraDistro, _RHELDistro, _CentOSDistro, + _OLDistro, _SLEDistro, _SLESDistro, _SLEHPCDistro,
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor