From 4da387f7caa48e19f995ce32d64645e4c20d4e7a Mon Sep 17 00:00:00 2001 From: David Naylor Date: Wed, 20 Feb 2013 17:24:04 +0000 Subject: [PATCH] Fix installation of devel/eric4 when stdin is closed. The installation asks the user a question, but if stdin is closed an EOFError is thrown and installation fails. The patch fixes this by assuming "no" to the question. The install script asks the user about modifying PyXML, an external file to eric4, thus answering "no" is the appropriate answer in the absence of user judgement. Approved by: eadler (mentor), bsam (maintainer) --- devel/eric4/files/patch-install.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 devel/eric4/files/patch-install.py diff --git a/devel/eric4/files/patch-install.py b/devel/eric4/files/patch-install.py new file mode 100644 index 000000000000..8aa56404adfe --- /dev/null +++ b/devel/eric4/files/patch-install.py @@ -0,0 +1,11 @@ +--- install.py~ 2013-02-18 20:06:18.000000000 +0200 ++++ install.py 2013-02-18 20:07:37.000000000 +0200 +@@ -1030,7 +1030,7 @@ + res = raw_input(" Shall pyXML be patched now (y/n)? ") + if res in ["Y", "y"]: + patchPyXML() +- except ImportError: ++ except (ImportError, EOFError): + pass + + #check version of PyQt