diff --git a/hplip-osname-mismatch.patch b/hplip-osname-mismatch.patch index 205de4d..3c38172 100644 --- a/hplip-osname-mismatch.patch +++ b/hplip-osname-mismatch.patch @@ -1,8 +1,8 @@ diff --git a/base/password.py b/base/password.py -index bff9f80..269ebd8 100644 +index bff9f80..d4aac78 100644 --- a/base/password.py +++ b/base/password.py -@@ -97,7 +97,7 @@ def get_distro_name(): +@@ -97,13 +97,15 @@ def get_distro_name(): os_name = name.read().strip() name.close() @@ -11,3 +11,11 @@ index bff9f80..269ebd8 100644 if "redhatenterprise" in os_name: os_name = 'rhel' elif "suse" in os_name: + os_name = 'suse' + elif "arch" in os_name: + os_name = 'manjarolinux' ++ elif "fedora" in os_name: ++ os_name = 'fedora' + + return os_name + diff --git a/hplip.spec b/hplip.spec index d8d96e4..8c84ef1 100644 --- a/hplip.spec +++ b/hplip.spec @@ -867,6 +867,7 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop * Tue Oct 26 2021 Zdenek Dohnal - 3.21.2-13 - 2015428 - python3.10 has Callable in collections.abc - GUI hp-setup uses avahi-browse +- adjust osname for CoreOS/Linux * Tue Sep 14 2021 Sahana Prasad - 3.21.2-12 - Rebuilt with OpenSSL 3.0.0