projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d1a085
)
Make ebuild-ipc.py suppress IOError just like it does for EOFError
author
Zac Medico
<zmedico@gentoo.org>
Fri, 10 Sep 2010 07:26:25 +0000
(
00:26
-0700)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 10 Sep 2010 07:26:25 +0000
(
00:26
-0700)
when the buffer is non-empty.
bin/ebuild-ipc.py
patch
|
blob
|
history
diff --git
a/bin/ebuild-ipc.py
b/bin/ebuild-ipc.py
index 21e5647f3919ef246b953cc8c002b828d8a72880..59ff735c91eb6ebed1eac92c124eeb1ad6549ccb 100755
(executable)
--- a/
bin/ebuild-ipc.py
+++ b/
bin/ebuild-ipc.py
@@
-88,11
+88,9
@@
class EbuildIpc(object):
buf = array.array('B')
try:
buf.fromfile(input_file, self._BUFSIZE)
- except
EOFError
as e:
+ except
(EOFError, IOError)
as e:
if not buf:
portage.util.writemsg("%s\n" % (e,), noiselevel=-1)
- except IOError as e:
- portage.util.writemsg("%s\n" % (e,), noiselevel=-1)
rval = 2