Skip to content
Browse files

Merge branch 'versions'

  • Loading branch information...
2 parents a5ee40a + 3a770fe commit 7b95e2ea8cc74cd4f9c0e809ec27394f0d8ee891 @ddollar ddollar committed Feb 24, 2012
Showing with 7 additions and 1 deletion.
  1. +1 −1 bin/compile
  2. +6 −0 support/package_nodejs
View
2 bin/compile
@@ -109,7 +109,7 @@ declare -A engine_defaults
declare -A engine_requests
engine_defaults["node"]="0.4.7"
-engine_defaults["npm"]="1.0.94"
+engine_defaults["npm"]="1.0.106"
engine_versions["node"]=$(manifest_versions "nodejs")
engine_requests["node"]=$(package_engine_version "node")
View
6 support/package_nodejs
@@ -34,6 +34,12 @@ cd $tempdir
# download and extract node
curl http://nodejs.org/dist/v${node_version}/node-v${node_version}.tar.gz -o node.tgz
+
+# try old-style download url if it doesnt exist
+if [ "$(grep -i "404 not found" node.tgz)" != "" ]; then
+ curl http://nodejs.org/dist/node-v${node_version}.tar.gz -o node.tgz
+fi
+
tar xzvf node.tgz
# go into node dir

0 comments on commit 7b95e2e

Please sign in to comment.
Something went wrong with that request. Please try again.