You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@toree.apache.org by lr...@apache.org on 2018/09/25 16:35:03 UTC

[1/2] incubator-toree git commit: [TOREE-474] support for custom resolvers (for %AddDeps)

Repository: incubator-toree
Updated Branches:
  refs/heads/master 5e7e29ddc -> f58a86f2a


[TOREE-474] support for custom resolvers (for %AddDeps)

The code path where downloadTotal is set is inconsistently
reached for certain repositories, like Artifactory.

Closes #162


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/387d6e10
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/387d6e10
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/387d6e10

Branch: refs/heads/master
Commit: 387d6e1099387981ab5bf73fe6dcdd435ef078f7
Parents: 5e7e29d
Author: Russell McEntyre <rm...@users.noreply.github.com>
Authored: Thu Sep 20 12:06:49 2018 -0700
Committer: Luciano Resende <lr...@apache.org>
Committed: Tue Sep 25 12:33:12 2018 -0400

----------------------------------------------------------------------
 .../apache/toree/dependencies/CoursierDependencyDownloader.scala   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/387d6e10/kernel-api/src/main/scala/org/apache/toree/dependencies/CoursierDependencyDownloader.scala
----------------------------------------------------------------------
diff --git a/kernel-api/src/main/scala/org/apache/toree/dependencies/CoursierDependencyDownloader.scala b/kernel-api/src/main/scala/org/apache/toree/dependencies/CoursierDependencyDownloader.scala
index 89a5e9c..811e85b 100644
--- a/kernel-api/src/main/scala/org/apache/toree/dependencies/CoursierDependencyDownloader.scala
+++ b/kernel-api/src/main/scala/org/apache/toree/dependencies/CoursierDependencyDownloader.scala
@@ -252,7 +252,7 @@ class CoursierDependencyDownloader extends DependencyDownloader {
     override def downloadProgress(url: String, downloaded: Long): Unit = {
       downloadAmount.put(url, downloaded)
 
-      val ratio = downloadAmount(url).toDouble / downloadTotal(url).toDouble
+      val ratio = downloadAmount(url).toDouble / downloadTotal.getOrElse[Long](url, 1).toDouble
       val percent = ratio * 100.0
 
       if (trace) printStream.printf(


[2/2] incubator-toree git commit: Update Coursier to Release 1.0.3

Posted by lr...@apache.org.
Update Coursier to Release 1.0.3


Project: http://git-wip-us.apache.org/repos/asf/incubator-toree/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-toree/commit/f58a86f2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-toree/tree/f58a86f2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-toree/diff/f58a86f2

Branch: refs/heads/master
Commit: f58a86f2a9466c122d52ed5abd8122c8ce40b2c5
Parents: 387d6e1
Author: Russell McEntyre <rm...@apple.com>
Authored: Thu Sep 20 14:38:37 2018 -0700
Committer: Luciano Resende <lr...@apache.org>
Committed: Tue Sep 25 12:34:07 2018 -0400

----------------------------------------------------------------------
 project/Dependencies.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/f58a86f2/project/Dependencies.scala
----------------------------------------------------------------------
diff --git a/project/Dependencies.scala b/project/Dependencies.scala
index 8c2064e..01c78f1 100644
--- a/project/Dependencies.scala
+++ b/project/Dependencies.scala
@@ -32,7 +32,7 @@ object Dependencies {
 
   val config = "com.typesafe" % "config" % "1.3.0" // Apache v2
 
-  val coursierVersion = "1.0.0-RC10"
+  val coursierVersion = "1.0.3"
   val coursier = "io.get-coursier" %% "coursier" % coursierVersion // Apache v2
   val coursierCache = "io.get-coursier" %% "coursier-cache" % coursierVersion // Apache v2