[Reproducible-commits] [diffoscope] 01/01: Mark that get_ar_content() requires 'ar'

Jérémy Bobbio lunar at moszumanska.debian.org
Tue Sep 1 17:15:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository diffoscope.

commit 8ef29ebd6d58631c7d766e2b91642924372ca948
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Tue Sep 1 17:14:06 2015 +0000

    Mark that get_ar_content() requires 'ar'
---
 diffoscope/comparators/utils.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/diffoscope/comparators/utils.py b/diffoscope/comparators/utils.py
index a87ea58..6edb0cd 100644
--- a/diffoscope/comparators/utils.py
+++ b/diffoscope/comparators/utils.py
@@ -30,7 +30,7 @@ from threading import Thread
 import diffoscope.comparators
 from diffoscope.comparators.binary import File
 from diffoscope.difference import Difference
-from diffoscope import logger
+from diffoscope import logger, tool_required
 
 
 @contextmanager
@@ -42,6 +42,7 @@ def make_temp_directory():
         shutil.rmtree(temp_dir)
 
 
+ at tool_required('ar')
 def get_ar_content(path):
     return subprocess.check_output(
         ['ar', 'tv', path], stderr=subprocess.STDOUT, shell=False).decode('utf-8')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git



More information about the Reproducible-commits mailing list