summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-02-09 13:21:53 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-02-09 13:21:53 +0100
commit0b1b4efcf9b16fbc8de3e28a8bfae092e3fc2717 (patch)
treef8d32456db0bc17932f444b99c27621dd8511dc8 /src
parent168a45c78ad4aaa62f5d81d3d41df3d6c74432b6 (diff)
parent7cb783dabf6a55780d77263272e38f684ba3307c (diff)
Merge branch 'master' into rhel6
Diffstat (limited to 'src')
-rwxr-xr-xsrc/Backtrace/abrt-bz-dupchecker15
-rw-r--r--src/Gui/PluginsSettingsDialog.py2
-rw-r--r--src/Gui/ccgui.glade2
3 files changed, 14 insertions, 5 deletions
diff --git a/src/Backtrace/abrt-bz-dupchecker b/src/Backtrace/abrt-bz-dupchecker
index cbdafc5..cb11bf1 100755
--- a/src/Backtrace/abrt-bz-dupchecker
+++ b/src/Backtrace/abrt-bz-dupchecker
@@ -25,6 +25,8 @@ import sys
import os.path
import subprocess
import cPickle
+import urllib
+import json
parser = OptionParser(version="%prog 1.0")
parser.add_option("-u", "--user", dest="user",
@@ -87,6 +89,7 @@ for buginfo in buginfos:
if ids.has_key(buginfo.bug_id):
continue
+
ids[buginfo.bug_id] = True
if not buginfo.bug_status in ["NEW", "ASSIGNED", "MODIFIED", "VERIFIED"]:
@@ -177,9 +180,17 @@ print "------------------------------"
for backtrace, components in database.items():
for component, bugitems in components.items():
if len(bugitems) > 1:
+ # Get the component owner
+ component_info = json.load(urllib.urlopen("https://admin.fedoraproject.org/pkgdb/packages/name/{0}?tg_format=json".format(buginfo.component)))
+ component_packages = component_info['packageListings']
+ component_f12 = filter(lambda x:x["collection"]["version"]=="12", component_packages)
+ owner = "Failed to get component owner"
+ if len(component_f12) == 1:
+ owner = component_f12["owner"]
+
if options.wiki:
print "----"
- print "* component: '''{0}'''".format(component)
+ print "* component: '''{0}''' ({1})".format(component, owner)
print "* duplicates: {0}".format(
reduce(lambda x,y: x+", "+y,
map(lambda x: "#[https://bugzilla.redhat.com/show_bug.cgi?id={0} {0}] ({1} comments)".format(x['id'],x['comments']),
@@ -188,7 +199,7 @@ for backtrace, components in database.items():
for line in backtrace.replace("Thread\n", "").splitlines():
print "*# {0}".format(line)
else:
- print "Component: {0}".format(component)
+ print "Component: {0} ({1})".format(component, owner)
print "Duplicates: {0}".format(
reduce(lambda x,y: x+", "+y,
map(lambda x: "{0} ({1})".format(x['id'],x['comments']),
diff --git a/src/Gui/PluginsSettingsDialog.py b/src/Gui/PluginsSettingsDialog.py
index 0ba390d..d6129b1 100644
--- a/src/Gui/PluginsSettingsDialog.py
+++ b/src/Gui/PluginsSettingsDialog.py
@@ -141,7 +141,7 @@ class PluginsSettingsDialog:
def on_bConfigurePlugin_clicked(self, button, pluginview):
pluginsListStore, path = pluginview.get_selection().get_selected_rows()
if not path:
- self.builder.get_object("lDescription").set_label(_("Can't get plugin description"))
+ gui_info_dialog(_("Please select a plugin from the list to edit it's options."), self.window)
return
# this should work until we keep the row object in the last position
pluginfo = pluginsListStore.get_value(pluginsListStore.get_iter(path[0]), pluginsListStore.get_n_columns()-1)
diff --git a/src/Gui/ccgui.glade b/src/Gui/ccgui.glade
index 78e5fd9..0b51334 100644
--- a/src/Gui/ccgui.glade
+++ b/src/Gui/ccgui.glade
@@ -207,7 +207,6 @@ Patrick Connelly &lt;pcon@fedoraproject.org&gt;</property>
<child>
<widget class="GtkToolbar" id="toolbar1">
<property name="visible">True</property>
- <property name="toolbar_style">both</property>
<child>
<widget class="GtkToolButton" id="bDelete">
<property name="visible">True</property>
@@ -224,7 +223,6 @@ Patrick Connelly &lt;pcon@fedoraproject.org&gt;</property>
<child>
<widget class="GtkToolButton" id="bReport">
<property name="visible">True</property>
- <property name="sensitive">False</property>
<property name="tooltip" translatable="yes">Report</property>
<property name="label" translatable="yes">Report</property>
<property name="stock_id">gtk-go-up</property>