From 150e13e710174b6204476d026b1499ca670e6883 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Sat, 2 Jan 2016 09:57:30 +0000 Subject: [PATCH] Set missing dependencies of metadata tool --- tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools.py b/tools.py index 3c6d335..0547ca6 100644 --- a/tools.py +++ b/tools.py @@ -154,7 +154,7 @@ def md5(path): return hashlib.md5(file.read()).hexdigest() -def metadata(path): # Deps: file, coreutils +def metadata(path): def _detail(value, unit): return (" (%s)" % value if unit is None else " (%s %s)" % @@ -200,7 +200,7 @@ def metadata(path): # Deps: file, coreutils name, value = line text.append("%-15s: %s\n" % (name, "".join(value))) return (Status.info, fill3.Text("".join(text))) -metadata.dependencies = set() +metadata.dependencies = {"file", "coreutils"} def _is_python_syntax_correct(path, python_version):