14 Star 0 Fork 2

ocs-upgrade/setroubleshoot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
remove-requires-for-libreport.patch 2.93 KB
一键复制 编辑 原始数据 按行查看 历史
nilusyi 提交于 2023-05-26 15:21 . OCS package init
# 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)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ocs-upgrade/setroubleshoot.git
git@gitee.com:ocs-upgrade/setroubleshoot.git
ocs-upgrade
setroubleshoot
setroubleshoot
master

搜索帮助