You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/01/16 19:30:09 UTC
[4/4] git commit: CB-5808 Fix lazy_load stripping off windows drive
letters
CB-5808 Fix lazy_load stripping off windows drive letters
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/abc993d5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/abc993d5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/abc993d5
Branch: refs/heads/master
Commit: abc993d5d093044883b3315e7c52036cbc159c28
Parents: 79c799b
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Jan 16 13:29:40 2014 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Jan 16 13:29:40 2014 -0500
----------------------------------------------------------------------
src/lazy_load.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/abc993d5/src/lazy_load.js
----------------------------------------------------------------------
diff --git a/src/lazy_load.js b/src/lazy_load.js
index 736ff55..6de1f7c 100644
--- a/src/lazy_load.js
+++ b/src/lazy_load.js
@@ -59,8 +59,7 @@ module.exports = {
}
} else {
// Local path.
- download_dir = uri.path;
- lib_dir = platforms[platform] && platforms[platform].subdirectory ? path.join(download_dir, platforms[platform].subdirectory) : download_dir;
+ lib_dir = platforms[platform] && platforms[platform].subdirectory ? path.join(url, platforms[platform].subdirectory) : url;
return Q(lib_dir);
}
return hooker.fire('before_library_download', {