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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to