Browse code

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

rabi authored on 2017/11/22 11:44:29
Showing 1 changed files
... ...
@@ -419,7 +419,7 @@ function lib_installed_from_git {
419 419
     #  bashate 0.5.2.dev19 /tmp/env/src/bashate
420 420
     # Thus we check the third column to see if we're installed from
421 421
     # some local place.
422
-    [[ -z $(pip list --format=columns 2>/dev/null | awk "/^$name/ {print \$3}") ]]
422
+    [[ -n $(pip list --format=columns 2>/dev/null | awk "/^$name/ {print \$3}") ]]
423 423
 }
424 424
 
425 425
 # check that everything that's in LIBS_FROM_GIT was actually installed