This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DLAB-1996 in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 782acb250d971562f7f0de56636edbf096e5adee Author: leonidfrolov <frolovl...@gmail.com> AuthorDate: Thu Aug 13 10:36:41 2020 +0300 [DLAB-1996]: fixed python lib install failure --- infrastructure-provisioning/src/general/lib/os/fab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py index 6555f4b..508b2d2 100644 --- a/infrastructure-provisioning/src/general/lib/os/fab.py +++ b/infrastructure-provisioning/src/general/lib/os/fab.py @@ -76,7 +76,8 @@ def install_pip_pkg(requisites, pip_version, lib_group): err = sudo('cat /tmp/{0}install_{1}.log'.format(pip_version, pip_pkg.split("==")[0])).replace('"', "'") sudo('{0} freeze --all | if ! grep -w -i {1} > /tmp/{0}install_{1}.list; then echo "" > /tmp/{0}install_{1}.list;fi'.format(pip_version, name)) res = sudo('cat /tmp/{0}install_{1}.list'.format(pip_version, name)) - installed_out = sudo('cat /tmp/tee.tmp | grep "Successfully installed"') + sudo('cat /tmp/tee.tmp | if ! grep "Successfully installed" > /tmp/{0}install_{1}.list; then echo "" > /tmp/{0}install_{1}.list;fi'.format(pip_version, name)) + installed_out = sudo('cat /tmp/{0}install_{1}.list'.format(pip_version, name)) changed_pip_pkg = False if res == '': changed_pip_pkg = pip_pkg.split("==")[0].replace("_", "-").split('-') --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org For additional commands, e-mail: commits-h...@dlab.apache.org