aboutsummaryrefslogtreecommitdiff
path: root/development/icdiff/fix-pipe-handling-installed.patch
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-08-31 10:31:22 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:51:56 +0700
commitd7dff4b2d5d283fce746611d92affee7d3d02860 (patch)
tree1673f55aeda5edad303233c9db757858ab29a590 /development/icdiff/fix-pipe-handling-installed.patch
parent90fb3f22807b16134f5edc8f72eb39a32714882d (diff)
development/icdiff: Updated for version 2.0.4.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/icdiff/fix-pipe-handling-installed.patch')
-rw-r--r--development/icdiff/fix-pipe-handling-installed.patch51
1 files changed, 0 insertions, 51 deletions
diff --git a/development/icdiff/fix-pipe-handling-installed.patch b/development/icdiff/fix-pipe-handling-installed.patch
deleted file mode 100644
index fcc9c84dd9e79..0000000000000
--- a/development/icdiff/fix-pipe-handling-installed.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-Description: fix closed pipe handling
-Author: Sascha Steinbiss <satta@debian.org>
-Bug: https://github.com/jeffkaufman/icdiff/issues/156
-Forwarded: https://github.com/jeffkaufman/icdiff/pull/165
-Last-Update: 2019-09-25
---- a/icdiff
-+++ b/icdiff
-@@ -594,7 +594,22 @@
- validate_has_two_arguments(parser, args)
- if not options.cols:
- set_cols_option(options)
-- diff(options, *args)
-+ try:
-+ diff(options, *args)
-+ except KeyboardInterrupt:
-+ pass
-+ except IOError as e:
-+ if e.errno == errno.EPIPE:
-+ pass
-+ else:
-+ raise
-+
-+ # Close stderr to prevent printing errors when icdiff is piped to
-+ # something that closes before icdiff is done writing
-+ #
-+ # See: https://stackoverflow.com/questions/26692284/...
-+ # ...how-to-prevent-brokenpipeerror-when-doing-a-flush-in-python
-+ sys.stderr.close()
-
-
- def codec_print(s, options):
-@@ -755,18 +770,4 @@
-
-
- if __name__ == "__main__":
-- try:
-- start()
-- except KeyboardInterrupt:
-- pass
-- except IOError as e:
-- if e.errno == errno.EPIPE:
-- pass
-- else:
-- raise
-- # Close stderr to prevent printing errors when icdiff is piped to
-- # something that closes before icdiff is done writing
-- #
-- # See: https://stackoverflow.com/questions/26692284/
-- # how-to-prevent-brokenpipeerror-when-doing-a-flush-in-python
-- sys.stderr.close()
-+ start()