[Reproducible-commits] [debbindiff] 01/01: Terminate xxd if output was too long
Jérémy Bobbio
lunar at moszumanska.debian.org
Fri Apr 3 08:47:26 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository debbindiff.
commit 7a7590c765d3e3062ae4b14ef6a220fb802c4cdf
Author: Jérémy Bobbio <lunar at debian.org>
Date: Fri Apr 3 10:47:16 2015 +0200
Terminate xxd if output was too long
---
debbindiff/comparators/binary.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/debbindiff/comparators/binary.py b/debbindiff/comparators/binary.py
index 7a606fc..5d1fb05 100644
--- a/debbindiff/comparators/binary.py
+++ b/debbindiff/comparators/binary.py
@@ -29,6 +29,8 @@ from debbindiff import tool_required, RequiredToolNotFound
def xxd(path):
p = subprocess.Popen(['xxd', path], shell=False, stdout=subprocess.PIPE)
yield p.stdout
+ if p.poll() is None:
+ p.terminate()
p.wait()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debbindiff.git
More information about the Reproducible-commits
mailing list