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/29 13:56:39 UTC

[incubator-dlab] 02/02: [DLAB-1966]: for R status invalid_version is returned only if list of available versions has been obtained

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

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

commit b827eca9c1f263e9e3472ea9093e9681daf417b7
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Wed Jul 29 16:56:17 2020 +0300

    [DLAB-1966]: for R status invalid_version is returned only if list of available versions has been obtained
---
 infrastructure-provisioning/src/general/lib/os/fab.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py
index 6b9d47c..45cd5c7 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -459,7 +459,7 @@ def install_r_pkg(requisites):
                 sudo('R -e \'install.packages("versions", repos="https://cloud.r-project.org", dep=TRUE)\'')
                 versions = sudo('R -e \'library(versions); available.versions("' + name + '")\' 2>&1 | grep -A 50 '
                                     '\'date available\' | awk \'{print $2}\'').replace('\r\n', ' ')[5:].split(' ')
-                if versions != '':
+                if versions != ['']:
                     status_msg = 'invalid_version'
             else:
                 versions = []


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