toree-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject incubator-toree git commit: [MINOR] Make dependency resolution quieter
Date Fri, 28 Sep 2018 02:52:33 GMT
Repository: incubator-toree
Updated Branches:
  refs/heads/master a742ec657 -> 33b545740


[MINOR] Make dependency resolution quieter

Closes #159


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

Branch: refs/heads/master
Commit: 33b54574000a41c8d5bd41a96288b621b25e31cc
Parents: a742ec6
Author: Craig Macdonald <craig.macdonald@glasgow.ac.uk>
Authored: Fri Aug 3 16:41:43 2018 +0100
Committer: Luciano Resende <lresende@apache.org>
Committed: Thu Sep 27 19:49:19 2018 -0700

----------------------------------------------------------------------
 .../dependencies/CoursierDependencyDownloader.scala     | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-toree/blob/33b54574/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 811e85b..4059080 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
@@ -118,9 +118,10 @@ class CoursierDependencyDownloader extends DependencyDownloader {
     )
 
     val fetchUris = localDirectory +: repositoriesToURIs(allRepositories)
-    printStream.println("Preparing to fetch from:")
-    printStream.println(s"-> ${fetchUris.mkString("\n-> ")}")
-
+    if (verbose) {    
+      printStream.println("Preparing to fetch from:")
+      printStream.println(s"-> ${fetchUris.mkString("\n-> ")}")
+    }
     // Verify locations where we will download dependencies
     val resolution = start.process.run(fetch).unsafePerformSync
 
@@ -148,8 +149,11 @@ class CoursierDependencyDownloader extends DependencyDownloader {
 
     // Print success
     val uris = localArtifacts.flatMap(_.toOption).map(_.toURI)
-    uris.map(_.getPath).foreach(p => printStream.println(s"-> New file at $p"))
 
+    if (verbose) uris.map(_.getPath).foreach(p => printStream.println(s"-> New file
at $p"))
+    
+    printStream.println("Obtained " + uris.size + " files")
+    
     uris
   }
 


Mime
View raw message