From b5fb7fd627fe24876a8dd2782fce065cf1957b55 Mon Sep 17 00:00:00 2001 From: rabi Date: Wed, 22 Nov 2017 08:14:29 +0530 Subject: [PATCH] Fix lib_installed_from_git In commit f0cd9a8b08d92524fc8e2c3f05d08cdebc638e2a we changed to use column format, but it checks for zero length string and check_libs_from_git fails. Change-Id: I97b52b80efb33749647229a55147a08afa112dd2 --- inc/python | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/python b/inc/python index 9a65bfefb1..9f56ec5e7f 100644 --- a/inc/python +++ b/inc/python @@ -419,7 +419,7 @@ function lib_installed_from_git { # bashate 0.5.2.dev19 /tmp/env/src/bashate # Thus we check the third column to see if we're installed from # some local place. - [[ -z $(pip list --format=columns 2>/dev/null | awk "/^$name/ {print \$3}") ]] + [[ -n $(pip list --format=columns 2>/dev/null | awk "/^$name/ {print \$3}") ]] } # check that everything that's in LIBS_FROM_GIT was actually installed