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/08/10 15:03:12 UTC

[incubator-dlab] 03/04: [DLAB-1983]: added 'invalid_name' status for R

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

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

commit 719de4f4b5c7f1e7dfa80f15fece5d991a61bbe1
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Mon Aug 10 17:39:11 2020 +0300

    [DLAB-1983]: added 'invalid_name' status for R
---
 infrastructure-provisioning/src/general/lib/os/fab.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py
index fbabb89..6555f4b 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -435,7 +435,7 @@ def ensure_ciphers():
 
 def install_r_pkg(requisites):
     status = list()
-    error_parser = "ERROR:|error:|Cannot|failed|Please run|requires|Error|Skipping"
+    error_parser = "ERROR:|error:|Cannot|failed|Please run|requires|Error|Skipping|couldn't find"
     try:
         for r_pkg in requisites:
             name, vers = r_pkg
@@ -467,6 +467,8 @@ def install_r_pkg(requisites):
             res = sudo('cat /tmp/install_{0}.list'.format(name))
             if err:
                 status_msg = 'installation_error'
+                if 'couldn\'t find package \'{}\''.format(name) in err:
+                    status_msg = 'invalid_name'
             elif res:
                 ansi_escape = re.compile(r'\x1b[^m]*m')
                 version = ansi_escape.sub('', res).split("\r\n")[0].split('"')[1]


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