Merge "Update lib_install_from_git to use column format"
This commit is contained in:
10
inc/python
10
inc/python
@@ -415,11 +415,11 @@ function lib_installed_from_git {
|
|||||||
# you the path an editable install was installed from; for example
|
# you the path an editable install was installed from; for example
|
||||||
# in response to something like
|
# in response to something like
|
||||||
# pip install -e 'git+http://git.openstack.org/openstack-dev/bashate#egg=bashate'
|
# pip install -e 'git+http://git.openstack.org/openstack-dev/bashate#egg=bashate'
|
||||||
# pip list shows
|
# pip list --format columns shows
|
||||||
# bashate (0.5.2.dev19, /tmp/env/src/bashate)
|
# bashate 0.5.2.dev19 /tmp/env/src/bashate
|
||||||
# Thus we look for "path after a comma" to indicate we were
|
# Thus we check the third column to see if we're installed from
|
||||||
# installed from some local place
|
# some local place.
|
||||||
pip list 2>/dev/null | grep -- "$name" | grep -q -- ', .*)$'
|
[[ -z $(pip list --format=columns 2>/dev/null | awk "/^$name/ {print \$3}") ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
# check that everything that's in LIBS_FROM_GIT was actually installed
|
# check that everything that's in LIBS_FROM_GIT was actually installed
|
||||||
|
Reference in New Issue
Block a user