From df32191abbcad46d166f4bd7b3ded7e35d6b4aef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Pollak?= Date: Tue, 29 Apr 2014 02:16:54 -0700 Subject: [PATCH] Removed debugging stuff. --- lib/conf/package.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/conf/package.js b/lib/conf/package.js index 6e3856315..059f1f555 100644 --- a/lib/conf/package.js +++ b/lib/conf/package.js @@ -117,6 +117,7 @@ package.download_release = function(version, cb) { host_path = releases_url + version + '/'; package.download(host_path + release, function(err, file) { + if (err) return cb(err); verify_checksum(host_path + checksums, release, file, function(err, valid) { if (err || !valid) @@ -132,8 +133,6 @@ package.download = function(url, cb) { log('Downloading package: ' + url); var file = system.tempfile_path(path.basename(url)); - return cb(null, file); - needle.get(url, { output: file }, function(err, resp, data) { if (err || resp.statusCode != 200)