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 2022/01/18 10:05:48 UTC
[incubator-datalab] 01/01: [DATALAB-2666]: increased amount of tries to download scala
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2666
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit f29e70a1c81b589f5c45e86cdb35905c3d35fb79
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Jan 18 12:05:31 2022 +0200
[DATALAB-2666]: increased amount of tries to download scala
---
infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
index 75011c7..b59259d 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -213,7 +213,7 @@ def ensure_scala(scala_link, scala_version, os_user):
if not exists(datalab.fab.conn,'/home/' + os_user + '/.ensure_dir/scala_ensured'):
try:
datalab.fab.conn.sudo('hostname; pwd')
- datalab.fab.conn.sudo('wget {}scala-{}.deb --tries=3 -O /tmp/scala.deb'.format(scala_link, scala_version))
+ datalab.fab.conn.sudo('wget {}scala-{}.deb --tries=5 -O /tmp/scala.deb'.format(scala_link, scala_version))
datalab.fab.conn.sudo('dpkg -i /tmp/scala.deb')
datalab.fab.conn.sudo('touch /home/' + os_user + '/.ensure_dir/scala_ensured')
except:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org