From 01b8ffaf7aacff621f6f77e7f8f2902dc5ce912e Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Wed, 26 Oct 2016 04:04:19 -0700 Subject: [PATCH] Can use the ubuntu packaging of bandit afterall. --- install-dependencies | 3 --- tools.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/install-dependencies b/install-dependencies index 158c321..4f4c0fb 100755 --- a/install-dependencies +++ b/install-dependencies @@ -10,6 +10,3 @@ sudo apt-get --yes install python3-minimal python3-pygments python3-pyinotify \ echo echo "Install all the tools vigil may need..." ./install-tools -sudo apt-get --yes install python-pip python3-pip -pip install bandit==1.1.0 -pip3 install bandit==1.1.0 diff --git a/tools.py b/tools.py index c530454..771d654 100644 --- a/tools.py +++ b/tools.py @@ -455,7 +455,7 @@ def bandit(path): text = stdout if python_version == "python" else _fix_input(eval(stdout)) text_without_timestamp = "".join(text.splitlines(keepends=True)[2:]) return status, fill3.Text(text_without_timestamp) -bandit.dependencies = {} +bandit.dependencies = {"python-bandit", "python3-bandit"} def _perl_version(path):