38 lines
1.7 KiB
Diff
38 lines
1.7 KiB
Diff
From 2dbf243d535c3b8dca5fa3b4e360ca8c6959f68d Mon Sep 17 00:00:00 2001
|
|
From: Petr Lautrbach <plautrba@redhat.com>
|
|
Date: Tue, 18 Jan 2022 12:01:03 +0100
|
|
Subject: [PATCH] Always use rpm source package for reporting
|
|
|
|
Originally when a module wasn't owned by any package policy_rpm, e.g.
|
|
selinux-policy-targeted..., was used. In Red Hat bugzilla there's no
|
|
component selinux-policy-targeted therefore we need to use source
|
|
package name when reporting a problem.
|
|
|
|
Fixes:
|
|
fatal: RPC failed at server. There is no component named 'selinux-policy-targeted-35.8-1.fc35.noarch' in the 'Fedora' product.
|
|
---
|
|
src/setroubleshoot/browser.py | 7 ++++---
|
|
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/src/setroubleshoot/browser.py b/src/setroubleshoot/browser.py
|
|
index 3203f75e0c17..48015834fe57 100644
|
|
--- a/src/setroubleshoot/browser.py
|
|
+++ b/src/setroubleshoot/browser.py
|
|
@@ -1002,9 +1002,10 @@ class BugReport:
|
|
text_buf = self.error_submit_text.get_buffer()
|
|
content = text_buf.get_text(text_buf.get_start_iter(),
|
|
text_buf.get_end_iter(), False)
|
|
- local_policy_package = get_rpm_source_package(self.alert.environment.local_policy_rpm)
|
|
- if local_policy_package is None:
|
|
- local_policy_package = self.alert.environment.policy_rpm
|
|
+ local_policy_rpm = self.alert.environment.local_policy_rpm
|
|
+ if not local_policy_rpm:
|
|
+ local_policy_rpm = self.alert.environment.policy_rpm
|
|
+ local_policy_package = get_rpm_source_package(local_policy_rpm)
|
|
signature = report.createAlertSignature(str(local_policy_package),
|
|
"setroubleshoot",
|
|
self.alert.get_hash(),
|
|
--
|
|
2.34.1
|
|
|