setroubleshoot-3.3.20-3.fc32
- Use dbus.mainloop.glib.DBusGMainLoop() instead of dbus.glib
This commit is contained in:
parent
e305bc4874
commit
160875de3e
@ -0,0 +1,43 @@
|
||||
From a47895131484cfb5d3b6bbbce1e1f223d69c5dda Mon Sep 17 00:00:00 2001
|
||||
From: Petr Lautrbach <plautrba@redhat.com>
|
||||
Date: Tue, 27 Aug 2019 22:34:08 +0200
|
||||
Subject: [PATCH] Use dbus.mainloop.glib.DBusGMainLoop() instead of dbus.glib
|
||||
|
||||
Fixes:
|
||||
/usr/bin/sealert:32: DeprecationWarning: Importing dbus.glib to use the GLib main loop with dbus-python is deprecated.
|
||||
Instead, use this sequence:
|
||||
|
||||
from dbus.mainloop.glib import DBusGMainLoop
|
||||
|
||||
DBusGMainLoop(set_as_default=True)
|
||||
|
||||
import dbus.glib
|
||||
---
|
||||
framework/src/sealert | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/framework/src/sealert b/framework/src/sealert
|
||||
index 4934df4..42dc976 100755
|
||||
--- a/framework/src/sealert
|
||||
+++ b/framework/src/sealert
|
||||
@@ -29,7 +29,6 @@ from gi.repository import GObject, GLib
|
||||
GLib.set_prgname('setroubleshoot')
|
||||
|
||||
import dbus
|
||||
-import dbus.glib
|
||||
import dbus.service
|
||||
import errno as Errno
|
||||
import gettext
|
||||
@@ -42,6 +41,9 @@ import fcntl
|
||||
import sys
|
||||
import slip.dbus.service
|
||||
|
||||
+from dbus.mainloop.glib import DBusGMainLoop
|
||||
+DBusGMainLoop(set_as_default=True)
|
||||
+
|
||||
from setroubleshoot.config import parse_config_setting, get_config
|
||||
domain = get_config('general', 'i18n_text_domain')
|
||||
kwargs = {}
|
||||
--
|
||||
2.23.0
|
||||
|
@ -4,11 +4,12 @@
|
||||
Summary: Helps troubleshoot SELinux problems
|
||||
Name: setroubleshoot
|
||||
Version: 3.3.20
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPLv2+
|
||||
URL: https://pagure.io/setroubleshoot
|
||||
Source0: https://releases.pagure.org/setroubleshoot/%{name}-%{version}.tar.gz
|
||||
Source1: %{name}.tmpfiles
|
||||
Patch1: 0001-Use-dbus.mainloop.glib.DBusGMainLoop-instead-of-dbus.patch
|
||||
BuildRequires: gcc
|
||||
BuildRequires: libcap-ng-devel
|
||||
BuildRequires: intltool gettext python3 python3-devel
|
||||
@ -194,6 +195,9 @@ SELinux troubleshoot legacy applet
|
||||
%{_bindir}/seappletlegacy
|
||||
|
||||
%changelog
|
||||
* Tue Aug 27 2019 Petr Lautrbach <plautrba@redhat.com> - 3.3.20-3
|
||||
- Use dbus.mainloop.glib.DBusGMainLoop() instead of dbus.glib
|
||||
|
||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.3.20-2
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user