代码拉取完成,页面将自动刷新
同步操作将从 OpenCloudOS Stream/setroubleshoot 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Date: Fri, 10 Mar 2023 11:17:48
# Subject: [PATCH] remove requires for libreport, this patch will affect the GUI interface.
diff -aur a/src/config.py.in b/src/config.py.in
--- a/src/config.py.in 2022-06-28 08:10:15.000000000 +0000
+++ b/src/config.py.in 2023-03-10 01:59:53.758740556 +0000
@@ -326,8 +326,8 @@
'description': 'URL to user help information',
},
'bug_report_url': {
- 'value': 'http://bugzilla.redhat.com/bugzilla/enter_bug.cgi',
- 'description': 'URL used to report bugs',
+ 'value': 'not_report_no_url',
+ 'description': 'URL used to report bugs(not report no URL)',
},
},
'test': {
diff -aur a/src/setroubleshoot/browser.py b/src/setroubleshoot/browser.py
--- a/src/setroubleshoot/browser.py 2022-06-28 08:10:15.000000000 +0000
+++ b/src/setroubleshoot/browser.py 2023-03-10 02:28:04.574824602 +0000
@@ -64,10 +64,6 @@
from setroubleshoot.html_util import html_to_text
import re
import dbus
-import report
-import report.io
-import report.io.GTKIO
-import report.accountmanager
from gi.repository import Gio
@@ -278,7 +274,7 @@
self.make_treeview()
self.troubleshoot_visible = False
self.current_alert = -1
- self.accounts = report.accountmanager.AccountManager()
+ self.accounts = {}
def get_current_alert(self):
try:
@@ -644,10 +640,7 @@
def report_bug(self, widget, alert):
# If we don't have a bug_report_window yet, make a new one
- if self.bug_report_window is None:
- br = BugReport(self, alert)
- self.bug_report_window = br
- self.bug_report_window.main_window.show()
+ pass
def update_alerts(self, database, type, item):
@@ -1002,25 +995,7 @@
self.idle_func()
def submit(self):
- 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_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(),
- self.summary,
- content,
- package=self.alert.get_policy_rpm())
-
- try:
- rc = report.report(signature, report.io.GTKIO.GTKIO(self.parent.accounts))
- except ProtocolError as e:
- FailDialog(e)
- self.destroy(self.main_window)
+ pass
def widget(self, name):
return self.builder.get_object(name)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。