tag 851055 + patch
thanks

Hi,

The attached patch appears to fix the bug. Run
  git am \
      0001-Unbreak-Read-bug-functionality-in-urwid-UI-Closes-85.patch
on the attachment to apply the patch/commit to the git repo.

Best wishes,
Ryan

-- 
|_)|_/  Ryan Kavanagh      | GPG: 4E46 9519 ED67 7734 268F
| \| \  https://ryanak.ca/ |      BD95 8F7B F8FC 4A11 C97A
From 0b103066c4965c038fbdc5b99ca59267ae78bb65 Mon Sep 17 00:00:00 2001
From: Ryan Kavanagh <r...@debian.org>
Date: Wed, 11 Jan 2017 15:34:51 -0500
Subject: [PATCH] Unbreak 'Read bug' functionality in urwid UI; Closes: #851055

---
 debian/changelog         | 4 ++++
 reportbug/ui/urwid_ui.py | 7 +++----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 21799c5..a96e03a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,12 @@
 reportbug (7.1.3) UNRELEASED; urgency=medium
 
+  [ Sandro Tosi ]
   * debian/control
     - bump Standards-Version to 3.9.8 (no changes needed)
 
+  [ Ryan Kavanagh ]
+  * Unbreak 'Read bug' functionality in urwid UI; Closes: #851055
+
  -- Sandro Tosi <mo...@debian.org>  Wed, 04 Jan 2017 20:21:57 -0500
 
 reportbug (7.1.2) unstable; urgency=medium
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
-- 
2.11.0

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Reportbug-maint mailing list
Reportbug-maint@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reportbug-maint

Reply via email to