diff --git a/rhn-client-tools.spec b/rhn-client-tools.spec index 883f19ab22..dbdb28bf4f 100644 --- a/rhn-client-tools.spec +++ b/rhn-client-tools.spec @@ -5,7 +5,7 @@ Source0: https://github.com/spacewalkproject/spacewalk/archive/%{name}-%{version URL: https://github.com/spacewalkproject/spacewalk Name: rhn-client-tools Version: 2.0.2 -Release: 23%{?dist} +Release: 24%{?dist} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) #BuildArch: noarch # see BZ 1617942 for more info as Requires are written into RPM headers @@ -365,6 +365,10 @@ make -f Makefile.rhn-client-tools test %endif %changelog +* Thu Sep 06 2018 Tomas Kasparek 2.0.2-24 +- Resolves: #1617942 - don't run dmi_warnings() if there's no dmidecode + (tkasparek@redhat.com) + * Fri Aug 17 2018 Tomas Kasparek 2.0.2-23 - Resolves: #1617942 - split into arch package (tkasparek@redhat.com) diff --git a/src/up2date_client/hardware.py b/src/up2date_client/hardware.py index a20ac48efd..a250ce9fb5 100644 --- a/src/up2date_client/hardware.py +++ b/src/up2date_client/hardware.py @@ -74,7 +74,7 @@ def dmi_warnings(): return dmidecode.get_warnings() -dmi_warn = dmi_warnings() +dmi_warn = None if _dmi_not_available else dmi_warnings() if dmi_warn: dmidecode.clear_warnings() log = up2dateLog.initLog()