[Reportbug-commits] [reportbug] 07/31: Unbreak 'Read bug' functionality in urwid UI; Closes: #851055

Sandro Tosi morph at moszumanska.debian.org
Mon Jan 16 01:36:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository reportbug.

commit 329ba259001a31a2e714401009a8acab2923bc3a
Author: Ryan Kavanagh <rak at debian.org>
Date:   Wed Jan 11 15:34:51 2017 -0500

    Unbreak 'Read bug' functionality in urwid UI; Closes: #851055
---
 reportbug/ui/urwid_ui.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/reportbug/ui/urwid_ui.py b/reportbug/ui/urwid_ui.py
index 848414c..0443c6c 100644
--- a/reportbug/ui/urwid_ui.py
+++ b/reportbug/ui/urwid_ui.py
@@ -622,11 +622,11 @@ def handle_bts_query(package, bts, timeout, mirrors=None, http_proxy="",
                 quitlabel = 'Quit'
 
             while True:
-                info = menu('Select a bug to read (and possibly report more information) or report a new bug:', buglist,
+                info = int(menu('Select a bug to read (and possibly report more information) or report a new bug:', buglist,
                             '', ui=ui, title=sectitle, default=p,
                             oklabel='Read bug',
                             cancellabel=cancellabel,
-                            quitlabel=quitlabel)
+                            quitlabel=quitlabel))
                 ui = None
                 if info < 0:
                     if info == -1:
@@ -639,8 +639,7 @@ def handle_bts_query(package, bts, timeout, mirrors=None, http_proxy="",
                         result = debbugs.get_report(info, timeout)[0]
                     break
                 else:
-                    p = info
-                    res = show_report(int(p), bts, mirrors, http_proxy,
+                    res = show_report(info, bts, mirrors, http_proxy,
                                       timeout, queryonly=queryonly)
                     if res:
                         result = res

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git



More information about the Reportbug-commits mailing list