Provide the policy rpm in Bugzilla bug reports by jfilak@redhat.com
setroubleshoot-3.2.21-1
This commit is contained in:
parent
f039224019
commit
579a0b7a35
1
.gitignore
vendored
1
.gitignore
vendored
@ -181,3 +181,4 @@ setroubleshoot-2.2.93.tar.gz
|
||||
/setroubleshoot-3.2.17.tar.gz
|
||||
/setroubleshoot-3.2.18.tar.gz
|
||||
/setroubleshoot-3.2.20.tar.gz
|
||||
/setroubleshoot-3.2.21.tar.gz
|
||||
|
@ -1,50 +0,0 @@
|
||||
From bf0c9f733cc6b98cc1ff753d61c4316653615705 Mon Sep 17 00:00:00 2001
|
||||
From: Jakub Filak <jfilak@redhat.com>
|
||||
Date: Fri, 4 Apr 2014 15:30:24 +0200
|
||||
Subject: [PATCH] Provide the policy rpm in Bugzilla bug reports
|
||||
|
||||
This patch adds the policy rpm string to the user comments of an already
|
||||
reported bug.
|
||||
|
||||
Every comment will contain the following string:
|
||||
|
||||
Version-Release number of selected component:
|
||||
selinux-policy-X.XX.X-XXX.YYY.noarch
|
||||
|
||||
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
||||
---
|
||||
framework/src/setroubleshoot/browser.py | 3 ++-
|
||||
framework/src/setroubleshoot/signature.py | 3 +++
|
||||
2 files changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/framework/src/setroubleshoot/browser.py b/framework/src/setroubleshoot/browser.py
|
||||
index 06a7276..04c5d68 100644
|
||||
--- a/framework/src/setroubleshoot/browser.py
|
||||
+++ b/framework/src/setroubleshoot/browser.py
|
||||
@@ -966,7 +966,8 @@ class BugReport:
|
||||
"setroubleshoot",
|
||||
self.alert.get_hash(),
|
||||
self.summary,
|
||||
- content)
|
||||
+ content,
|
||||
+ package=self.alert.get_policy_rpm())
|
||||
|
||||
try:
|
||||
rc = report.report(signature, report.io.GTKIO.GTKIO(self.parent.accounts))
|
||||
diff --git a/framework/src/setroubleshoot/signature.py b/framework/src/setroubleshoot/signature.py
|
||||
index dcf701a..a9fe78b 100755
|
||||
--- a/framework/src/setroubleshoot/signature.py
|
||||
+++ b/framework/src/setroubleshoot/signature.py
|
||||
@@ -295,6 +295,9 @@ class SEFaultSignatureInfo(XmlSerialize):
|
||||
for name in self.merge_include:
|
||||
setattr(self, name, getattr(siginfo, name))
|
||||
|
||||
+ def get_policy_rpm(self):
|
||||
+ return self.environment.policy_rpm;
|
||||
+
|
||||
def get_hash_str(self):
|
||||
return "%s,%s,%s,%s,%s" % (self.source, self.scontext.type, self.tcontext.type, self.tclass, ",".join(self.sig.access))
|
||||
|
||||
--
|
||||
1.8.3.1
|
||||
|
@ -1,15 +1,16 @@
|
||||
Summary: Helps troubleshoot SELinux problems
|
||||
Name: setroubleshoot
|
||||
Version: 3.2.20
|
||||
Release: 3%{?dist}
|
||||
Version: 3.2.21
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
URL: https://fedorahosted.org/setroubleshoot
|
||||
# git clone git://git.fedorahosted.org/git/setroubleshoot.git; cd setroubleshoot
|
||||
# git archive --prefix setroubleshoot-3.0.10/426cf8ea7a38e8c5179981219d831368161b65f2 > setroubleshoot-3.0.10.tar.gz
|
||||
# git clone https://github.com/fedora-selinux/setroubleshoot.git
|
||||
# cd setroubleshoot/framework/
|
||||
# git checkout setroubleshoot-%{version}
|
||||
# ./autogen.sh
|
||||
# make dist
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Patch1: 0001-Provide-the-policy-rpm-in-Bugzilla-bug-reports.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: perl-XML-Parser
|
||||
BuildRequires: libcap-ng-devel
|
||||
BuildRequires: intltool gettext python
|
||||
@ -73,7 +74,6 @@ fi
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p 2 -b .reports
|
||||
|
||||
%build
|
||||
%configure
|
||||
@ -171,6 +171,9 @@ rm -rf %{buildroot}
|
||||
%{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootFixit.service
|
||||
|
||||
%changelog
|
||||
* Tue Feb 10 2015 Petr Lautrbach <plautrba@redhat.com> 3.2.21-1
|
||||
- Provide the policy rpm in Bugzilla bug reports by jfilak@redhat.com
|
||||
|
||||
* Thu Aug 21 2014 Kevin Fenzi <kevin@scrye.com> - 3.2.20-3
|
||||
- Rebuild for rpm bug 1131960
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user