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/04/13 14:27:17 UTC

[incubator-datalab] 03/04: [DATALAB-2091]: fixed R lib versions list

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

lfrolov pushed a commit to branch DATALAB-2091
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit 86c9c509cbc8ecd80aa6db0dc6e689a65ad3b176
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Apr 13 17:26:43 2021 +0300

    [DATALAB-2091]: fixed R lib versions list
---
 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 de00201..2bb9518 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -491,7 +491,7 @@ def install_r_pkg(requisites):
             if 'Error in download_version_url(package, version, repos, type) :' in err or 'Error in parse_deps(paste(spec,' in err:
                 conn.sudo('R -e \'install.packages("versions", repos="https://cloud.r-project.org", dep=TRUE)\'')
                 versions = conn.sudo('R -e \'library(versions); available.versions("' + name + '")\' 2>&1 | grep -A 50 '
-                                    '\'date available\' | awk \'{print $2}\'').stdout.replace('\n', ' ')[5:].split(' ')
+                                    '\'date available\' | awk \'{print $2}\'').stdout.strip().replace('\n', ' ')[5:].split(' ')
                 if versions != ['']:
                     status_msg = 'invalid_version'
                 else:

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