diff options
author | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2015-08-09 14:30:30 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-08-09 14:30:30 -0700 |
commit | 46025616b414eaf1da01fcc1255d8041ea1554bc (patch) | |
tree | 3cc17c22ea78c751b738df4cabeccd9d17aae785 /core | |
parent | 23cf5af08d98da771c41571c00a2f5cafedfebdd (diff) | |
download | spark-46025616b414eaf1da01fcc1255d8041ea1554bc.tar.gz spark-46025616b414eaf1da01fcc1255d8041ea1554bc.tar.bz2 spark-46025616b414eaf1da01fcc1255d8041ea1554bc.zip |
[CORE] [SPARK-9760] Use Option instead of Some for Ivy repos
This was introduced in #7599
cc rxin brkyvz
Author: Shivaram Venkataraman <shivaram@cs.berkeley.edu>
Closes #8055 from shivaram/spark-packages-repo-fix and squashes the following commits:
890f306 [Shivaram Venkataraman] Remove test case
51d69ee [Shivaram Venkataraman] Add test case for --packages without --repository
c02e0b4 [Shivaram Venkataraman] Use Option instead of Some for Ivy repos
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala b/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala index 1186bed485..7ac6cbce4c 100644 --- a/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala +++ b/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala @@ -284,7 +284,7 @@ object SparkSubmit { Nil } val resolvedMavenCoordinates = SparkSubmitUtils.resolveMavenCoordinates(args.packages, - Some(args.repositories), Some(args.ivyRepoPath), exclusions = exclusions) + Option(args.repositories), Option(args.ivyRepoPath), exclusions = exclusions) if (!StringUtils.isBlank(resolvedMavenCoordinates)) { args.jars = mergeFileLists(args.jars, resolvedMavenCoordinates) if (args.isPython) { |