projects
/
platform
/
upstream
/
zypper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb309cc
)
Catch Broken-PIPE Exception in zypper-log
author
Dominik Heidler
<dheidler@suse.de>
Mon, 27 Jun 2011 08:37:11 +0000
(10:37 +0200)
committer
Dominik Heidler
<dheidler@suse.de>
Mon, 27 Jun 2011 08:38:37 +0000
(10:38 +0200)
tools/zypper-log
patch
|
blob
|
history
diff --git
a/tools/zypper-log
b/tools/zypper-log
index
783dd83
..
e371130
100755
(executable)
--- a/
tools/zypper-log
+++ b/
tools/zypper-log
@@
-5,7
+5,7
@@
#
# Author: Dominik Heidler <dheidler@suse.de>
-import os, string, re, bz2, zlib, sys, time, argparse
+import os, string, re, bz2, zlib, sys, time, argparse
, errno
filenamelen = 0
pidlen = 0
@@
-110,4
+110,8
@@
def main():
if __name__ == "__main__":
- main()
+ try:
+ main()
+ except IOError, e:
+ if e.errno != errno.EPIPE:
+ raise