From 3d932ba135f9fe7eb649269543276dffa7aa563a Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Thu, 12 May 2016 03:19:28 +0200 Subject: [PATCH] wicd: wicd-curses fix for ... ... AttributeError: 'Screen' object has no attribute 'get_input_nonblocking' fixes #10281 --- pkgs/tools/networking/wicd/default.nix | 1 + pkgs/tools/networking/wicd/fix-curses.patch | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/tools/networking/wicd/fix-curses.patch diff --git a/pkgs/tools/networking/wicd/default.nix b/pkgs/tools/networking/wicd/default.nix index 702948204252..9294d4c88ae7 100644 --- a/pkgs/tools/networking/wicd/default.nix +++ b/pkgs/tools/networking/wicd/default.nix @@ -24,6 +24,7 @@ stdenv.mkDerivation rec { ./fix-app-icon.patch ./fix-gtk-issues.patch ./urwid-api-update.patch + ./fix-curses.patch ]; # Should I be using pygtk's propogated build inputs? diff --git a/pkgs/tools/networking/wicd/fix-curses.patch b/pkgs/tools/networking/wicd/fix-curses.patch new file mode 100644 index 000000000000..138dfbabfd5c --- /dev/null +++ b/pkgs/tools/networking/wicd/fix-curses.patch @@ -0,0 +1,15 @@ +--- a/curses/wicd-curses.py 2015-01-27 22:35:25.414781192 -0300 ++++ b/curses/wicd-curses.py 2015-01-28 01:13:48.078904587 -0300 +@@ -1153,9 +1153,10 @@ + if not ui._started: + return False + +- input_data = ui.get_input_nonblocking() ++ ui.set_input_timeouts(max_wait=0) ++ input_data = ui.get_input() + # Resolve any "alarms" in the waiting +- self.handle_keys(input_data[1]) ++ self.handle_keys(input_data) + + # Update the screen + canvas = self.frame.render((self.size), True)