www-client/firefox: fix improper usage of blessings.tigetstr
authorThomas Deutschmann <whissi@gentoo.org>
Mon, 24 Sep 2018 00:24:51 +0000 (02:24 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Mon, 24 Sep 2018 00:55:29 +0000 (02:55 +0200)
Closes: https://bugs.gentoo.org/666840
Package-Manager: Portage-2.3.49, Repoman-2.3.10

www-client/firefox/files/firefox-60.0-blessings-TERM.patch

index 3d024a47b99a8029a13fd6a980473d1cd65bf9b0..975e0cf6fe7bbbcbb3b3d3997fbec66c6fdf53c0 100644 (file)
@@ -54,3 +54,17 @@ index 3872b5f..fdceb09 100644
                  # There was an error setting up the terminal, either curses is
                  # not supported or TERM is incorrectly set. Fall back to dumb.
                  self._does_styling = False
+
+
+--- a/python/mach/mach/logging.py
++++ b/python/mach/mach/logging.py
+@@ -93,7 +93,7 @@
+     def set_terminal(self, terminal):
+         self.terminal = terminal
+-        self._sgr0 = blessings.tigetstr('sgr0') or '' if terminal and blessings else ''
++        self._sgr0 = terminal.normal if terminal and blessings else ''
+     def format(self, record):
+         f = record.msg.format(**record.params)