You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2021/06/15 13:49:56 UTC
[incubator-datalab] 02/02: [DATALAB-2420]: fixed status in case if
lib is already installed
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2420
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 8d41e00887402ce2bae157c7115c95999741d2ac
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Jun 15 16:49:34 2021 +0300
[DATALAB-2420]: fixed status in case if lib is already installed
---
infrastructure-provisioning/src/general/lib/os/fab.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py
index e798c16..10420b8 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -134,8 +134,8 @@ def install_pip_pkg(requisites, pip_version, lib_group):
res = conn.sudo('''bash -l -c 'cat /tmp/{0}install_{1}.list' '''.format(pip_version, name)).stdout.replace(
'\n', '')
conn.sudo(
- '''bash -l -c 'cat /tmp/tee.tmp | if ! grep "Successfully installed" > /tmp/{0}install_{1}.list; then '''
- '''echo "not_installed" > /tmp/{0}install_{1}.list;fi' '''.format(
+ '''bash -l -c 'cat /tmp/tee.tmp | if ! grep -w -i -E "(Successfully installed|up-to-date)" > '''
+ '''/tmp/{0}install_{1}.list; then echo "not_installed" > /tmp/{0}install_{1}.list;fi' '''.format(
pip_version, name))
installed_out = conn.sudo(
'''bash -l -c 'cat /tmp/{0}install_{1}.list' '''.format(pip_version, name)).stdout.replace('\n', '')
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org