Fixed tuned-gui traceback (by tuned-gui-traceback-fix patch)

Resolves: rhbz#1358846
- Fixed 'tuned-adm list' traceback if daemon is not running
  (by tuned-adm-list-no-dbus-traceback-fix patch)
This commit is contained in:
Jaroslav Škarvada 2016-07-21 17:29:36 +02:00
parent 13effbc560
commit c3104a467e
3 changed files with 73 additions and 2 deletions

View File

@ -0,0 +1,30 @@
From e6b647641bbb17f36f804ba22dda198478d8533b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= <jskarvad@redhat.com>
Date: Thu, 21 Jul 2016 16:34:29 +0200
Subject: [PATCH 2/2] tuned-adm: fixed traceback of 'tuned-adm list' if daemon
is not running
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
---
tuned/admin/admin.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tuned/admin/admin.py b/tuned/admin/admin.py
index ad501c0..cbdd1be 100644
--- a/tuned/admin/admin.py
+++ b/tuned/admin/admin.py
@@ -98,7 +98,7 @@ class Admin(object):
def _action_list(self):
self._print_profiles(self._profiles_locator.get_known_names_summary())
- self._action_dbus_active()
+ self._action_active()
return True
def _dbus_get_active_profile(self):
--
2.5.5

View File

@ -0,0 +1,32 @@
From e6c6e157336acd08e40c817d4e7ee7bf1a1f5a04 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= <jskarvad@redhat.com>
Date: Thu, 21 Jul 2016 11:08:20 +0200
Subject: [PATCH 1/2] gui: fixed traceback caused by DBus paths copy&paste
error
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Related: rhbz#1356369
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
---
tuned-gui.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tuned-gui.py b/tuned-gui.py
index 0555404..b169dec 100755
--- a/tuned-gui.py
+++ b/tuned-gui.py
@@ -89,7 +89,7 @@ class Base(object):
try:
self.controller = \
tuned.admin.DBusController(consts.DBUS_BUS,
- consts.DBUS_OBJECT, consts.DBUS_INTERFACE)
+ consts.DBUS_INTERFACE, consts.DBUS_OBJECT)
self.controller.is_running()
except tuned.admin.exceptions.TunedAdminDBusException, ex:
response = self.tuned_daemon_exception_dialog.run()
--
2.5.5

View File

@ -1,7 +1,7 @@
Summary: A dynamic adaptive system tuning daemon Summary: A dynamic adaptive system tuning daemon
Name: tuned Name: tuned
Version: 2.7.0 Version: 2.7.0
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ License: GPLv2+
Source: https://fedorahosted.org/releases/t/u/tuned/tuned-%{version}.tar.bz2 Source: https://fedorahosted.org/releases/t/u/tuned/tuned-%{version}.tar.bz2
URL: https://fedorahosted.org/tuned/ URL: https://fedorahosted.org/tuned/
@ -13,6 +13,8 @@ Requires(postun): systemd
Requires: python-decorator, dbus-python, pygobject3-base, python-pyudev Requires: python-decorator, dbus-python, pygobject3-base, python-pyudev
Requires: virt-what, python-configobj, ethtool, gawk, kernel-tools, hdparm Requires: virt-what, python-configobj, ethtool, gawk, kernel-tools, hdparm
Requires: util-linux, python-perf, dbus, polkit Requires: util-linux, python-perf, dbus, polkit
Patch0: tuned-2.7.0-tuned-gui-traceback-fix.patch
Patch1: tuned-2.7.0-tuned-adm-list-no-dbus-traceback-fix.patch
%description %description
The tuned package contains a daemon that tunes system settings dynamically. The tuned package contains a daemon that tunes system settings dynamically.
@ -113,7 +115,8 @@ It can be also used to fine tune your system for specific scenarios.
%prep %prep
%setup -q %setup -q
%patch0 -p1
%patch1 -p1
%build %build
@ -322,6 +325,12 @@ fi
%{_mandir}/man7/tuned-profiles-compat.7* %{_mandir}/man7/tuned-profiles-compat.7*
%changelog %changelog
* Thu Jul 21 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 2.7.0-2
- Fixed tuned-gui traceback (by tuned-gui-traceback-fix patch)
Resolves: rhbz#1358846
- Fixed 'tuned-adm list' traceback if daemon is not running
(by tuned-adm-list-no-dbus-traceback-fix patch)
* Tue Jul 19 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 2.7.0-1 * Tue Jul 19 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 2.7.0-1
- new-release - new-release
- gui: fixed save profile - gui: fixed save profile