You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by lf...@apache.org on 2020/07/10 16:24:40 UTC

[incubator-dlab] branch DLAB-1748 updated: [DLAB-1748]: changed how new installed dependencies are acquired for pip

This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DLAB-1748
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-1748 by this push:
     new 7da2448  [DLAB-1748]: changed how new installed dependencies are acquired for pip
7da2448 is described below

commit 7da2448ebf86bc5e9df8800d89349ff03852346e
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Fri Jul 10 19:16:16 2020 +0300

    [DLAB-1748]: changed how new installed dependencies are acquired for pip
---
 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 86814d2..6973d6b 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -87,8 +87,8 @@ def install_pip_pkg(requisites, pip_version, lib_group):
                     version = \
                     [i for i in ver if pip_pkg.split("==")[0].lower() in i][0].split(
                         '==')[1]
-                dep = sudo('cat /tmp/tee.tmp | grep "Installing collected packages: "').replace('\r\n', '').replace(pip_pkg[0], '').strip()
-                if dep == '':
+                dep = sudo('cat /tmp/tee.tmp | grep "Installing collected packages: "').replace('\r\n', '').strip()[31:]
+                if dep == '' or dep == pip_pkg.split("==")[0]:
                     dep = []
                 else:
                     dep = dep.split(', ')


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org