[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#854971: marked as done (unblock: reportbug/7.1.5)



Your message dated Sun, 12 Feb 2017 19:21:07 +0000
with message-id <E1cczhr-0006Q0-Nm@respighi.debian.org>
and subject line unblock reportbug
has caused the Debian Bug report #854971,
regarding unblock: reportbug/7.1.5
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
854971: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854971
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package reportbug

I just uploaded a new release of reportbug fixing bugs in GTK+ interface and in
charset/locale handling which are affecting many users

Source debdiff between 7.1.4 and 7.1.5 is attached

unblock reportbug/7.1.5

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru reportbug-7.1.4/debian/changelog reportbug-7.1.5/debian/changelog
--- reportbug-7.1.4/debian/changelog	2017-01-22 18:16:04.000000000 -0500
+++ reportbug-7.1.5/debian/changelog	2017-02-12 12:07:18.000000000 -0500
@@ -1,3 +1,20 @@
+reportbug (7.1.5) unstable; urgency=medium
+
+  * reportbug/utils.py
+    - handle correcly the situation where reportbug config file and dpkg status
+      database have a different charset than current locale; patch by Nis
+      Martensen; Closes: #848729
+  * reportbug/ui/gtk2_ui.py
+    - fallback gracefully to text UI if running GTK+ interface on a text
+      console; patch by Nis Martensen; Closes: #853269
+    - fallback gracefully to text UI in case some of the GTK+ deps are not
+      available, by catching all the relevant exceptions; patch by Jakob Haufe;
+      Closes: #854405
+    - require also Cairo, required to render the GTK+ interface; patch by Nis
+      Martensen; Closes: #852652
+
+ -- Sandro Tosi <morph@debian.org>  Sun, 12 Feb 2017 12:07:18 -0500
+
 reportbug (7.1.4) unstable; urgency=medium
 
   * reportbug/submit.py
diff -Nru reportbug-7.1.4/reportbug/__init__.py reportbug-7.1.5/reportbug/__init__.py
--- reportbug-7.1.4/reportbug/__init__.py	2017-01-22 18:16:04.000000000 -0500
+++ reportbug-7.1.5/reportbug/__init__.py	2017-02-12 12:07:18.000000000 -0500
@@ -25,7 +25,7 @@
 __all__ = ['bugreport', 'utils', 'urlutils', 'checkbuildd', 'checkversions',
            'debbugs', 'exceptions', 'submit', 'tempfile']
 
-VERSION_NUMBER = "7.1.4"
+VERSION_NUMBER = "7.1.5"
 
 VERSION = "reportbug " + VERSION_NUMBER
 COPYRIGHT = VERSION + '\nCopyright (C) 1999-2008 Chris Lawrence <lawrencc@debian.org>' + \
Binary files /tmp/cOjLl1qlsz/reportbug-7.1.4/reportbug/__pycache__/__init__.cpython-35.pyc and /tmp/vTwa7oxWbv/reportbug-7.1.5/reportbug/__pycache__/__init__.cpython-35.pyc differ
Binary files /tmp/cOjLl1qlsz/reportbug-7.1.4/reportbug/__pycache__/submit.cpython-35.pyc and /tmp/vTwa7oxWbv/reportbug-7.1.5/reportbug/__pycache__/submit.cpython-35.pyc differ
Binary files /tmp/cOjLl1qlsz/reportbug-7.1.4/reportbug/__pycache__/utils.cpython-35.pyc and /tmp/vTwa7oxWbv/reportbug-7.1.5/reportbug/__pycache__/utils.cpython-35.pyc differ
diff -Nru reportbug-7.1.4/reportbug/ui/gtk2_ui.py reportbug-7.1.5/reportbug/ui/gtk2_ui.py
--- reportbug-7.1.4/reportbug/ui/gtk2_ui.py	2017-01-22 18:16:04.000000000 -0500
+++ reportbug-7.1.5/reportbug/ui/gtk2_ui.py	2017-02-12 12:07:18.000000000 -0500
@@ -22,6 +22,10 @@
 
 from reportbug.exceptions import UINotImportable
 
+import os
+if not ('DISPLAY' in os.environ or 'WAYLAND_DISPLAY' in os.environ):
+    raise UINotImportable('No graphical display detected, falling back to text UI.')
+
 try:
     import gi
 
@@ -42,6 +46,8 @@
 
     gi.require_version('Gtk', '3.0')
     from gi.repository import Gtk
+
+    gi.require_foreign('cairo')
 except ImportError:
     raise UINotImportable('Please install the python3-gi and gir1.2-gtk-3.0 packages to use this interface.')
 
@@ -1777,7 +1783,7 @@
     try:
         gi.require_version('Vte', '2.91')
         from gi.repository import Vte
-    except ImportError:
+    except (ImportError,ValueError):
         message = """Please install the %s package to use the GTK+(known as 'gtk2' in reportbug) interface.
 Falling back to 'text' interface."""
         dialog = Gtk.MessageDialog(None, Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT,
Binary files /tmp/cOjLl1qlsz/reportbug-7.1.4/reportbug/ui/__pycache__/gtk2_ui.cpython-35.pyc and /tmp/vTwa7oxWbv/reportbug-7.1.5/reportbug/ui/__pycache__/gtk2_ui.cpython-35.pyc differ
diff -Nru reportbug-7.1.4/reportbug/utils.py reportbug-7.1.5/reportbug/utils.py
--- reportbug-7.1.4/reportbug/utils.py	2017-01-22 18:16:04.000000000 -0500
+++ reportbug-7.1.5/reportbug/utils.py	2017-02-12 12:07:18.000000000 -0500
@@ -496,7 +496,7 @@
 
 def get_dpkg_database():
     try:
-        fp = open(STATUSDB)
+        fp = open(STATUSDB, errors="backslashreplace")
         if fp:
             return AvailDB(fp=fp)
     except IOError:
@@ -976,7 +976,7 @@
     for filename in FILES:
         if os.path.exists(filename):
             try:
-                lex = our_lex(open(filename), posix=True)
+                lex = our_lex(open(filename, errors="backslashreplace"), posix=True)
             except IOError as msg:
                 continue
 
@@ -1235,7 +1235,7 @@
     isattachments = False
     headers = pseudoheaders = text = ''
     attachments = []
-    fp = open(filename)
+    fp = open(filename, errors="backslashreplace")
     for line in fp.readlines():
         # we identify the blocks for headers and pseudo-h
         if line == '-- BEGIN HEADERS --\n':

--- End Message ---
--- Begin Message ---
Unblocked.

--- End Message ---

Reply to: