Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP2
virt-manager.7890
virtinst-check-date-format.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File virtinst-check-date-format.patch of Package virt-manager.7890
Fixes a bug caused by a bogus EOL date in an osinfo database file. The bad date caused an exception in strptime. Index: virt-manager-1.4.2/virtinst/osdict.py =================================================================== --- virt-manager-1.4.2.orig/virtinst/osdict.py +++ virt-manager-1.4.2/virtinst/osdict.py @@ -363,8 +363,11 @@ class _OsVariant(object): eol_date = self._os.get_eol_date_string() if eol_date: - return (datetime.datetime.strptime(eol_date, "%Y-%m-%d") > - datetime.datetime.now()) + try: + eol_valid = datetime.datetime.strptime(eol_date, "%Y-%m-%d") + return (eol_valid > datetime.datetime.now()) + except Exception: + pass if self.name == "fedora-unknown": return False
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