File get_os_version.patch of Package policycoreutils

Index: policycoreutils-3.9/selinux-python-3.9/sepolicy/sepolicy/__init__.py
===================================================================
--- policycoreutils-3.9.orig/selinux-python-3.9/sepolicy/sepolicy/__init__.py
+++ policycoreutils-3.9/selinux-python-3.9/sepolicy/sepolicy/__init__.py
@@ -1246,7 +1246,8 @@ def get_os_version():
         import distro
         system_release = distro.name(pretty=True)
     except (ModuleNotFoundError, OSError, IOError, UnicodeError, subprocess.CalledProcessError):
-        system_release = "Misc"
+        # make SUSE the default return value on SUSE systems
+        system_release = "SUSE"
 
     return system_release
 
openSUSE Build Service is sponsored by