mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
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)
This commit is contained in:
parent
c54cf77b96
commit
4da387f7ca
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=312630
1 changed files with 11 additions and 0 deletions
11
devel/eric4/files/patch-install.py
Normal file
11
devel/eric4/files/patch-install.py
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue