hplip-osname-mismatch.patch: adjust osname for Fedora CoreOS/Linux

This commit is contained in:
Zdenek Dohnal 2021-10-26 13:22:41 +02:00
parent 416b1932b5
commit 437db9d451
2 changed files with 11 additions and 2 deletions

View File

@ -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

View File

@ -867,6 +867,7 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
* Tue Oct 26 2021 Zdenek Dohnal <zdohnal@redhat.com> - 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 <sahana@redhat.com> - 3.21.2-12
- Rebuilt with OpenSSL 3.0.0