Permalink
Browse files

[fix] Mongo: fix automatic installation on Mac OS X

  • Loading branch information...
1 parent 3400441 commit 8665198eb8283c590a7638faece2a43fd2a7a562 @cedricss cedricss committed Jun 6, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 stdlib/database/mongo/db.opa
@@ -366,23 +366,23 @@ Then use option --db-remote instead of --db-local.
jlog(msg) = Log.notice("DbGen/Mongo", msg)
- default_archive =
- arch = "x86_64" // TODO 32 BITS
- ver = "2.0.2"
- os = (
+ os =
#<Ifstatic:IS_LINUX 1>
some("linux")
#<Else>#<Ifstatic:IS_MAC 1>
some("osx")
#<Else>
none
#<End>#<End>
- )
+
+ default_archive =
+ arch = "x86_64" // TODO 32 BITS
+ ver = "2.0.2"
Option.map(os -> "mongodb-{os}-{arch}-{ver}", os)
default_url =
Option.map(default_archive ->
- "http://fastdl.mongodb.org/linux/{default_archive}.tgz",
+ "http://fastdl.mongodb.org/{Option.get(os)}/{default_archive}.tgz",
default_archive)
default_remote = {

0 comments on commit 8665198

Please sign in to comment.