You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2013/05/16 17:57:01 UTC
[02/20] git commit: Fix source and destination paths for installing
plugins from local disk
Fix source and destination paths for installing plugins from local disk
They were installing into eg. my.plugin.id/plugman_dir_basename/*
instead of just my.plugin.id/*.
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/58cbc81d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/58cbc81d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/58cbc81d
Branch: refs/heads/master
Commit: 58cbc81dc244d3cdb0bd1f48e03389281e14d629
Parents: 5a054f3
Author: Braden Shepherdson <br...@gmail.com>
Authored: Tue May 14 13:54:28 2013 -0400
Committer: Fil Maj <ma...@gmail.com>
Committed: Thu May 16 08:53:19 2013 -0700
----------------------------------------------------------------------
src/fetch.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/58cbc81d/src/fetch.js
----------------------------------------------------------------------
diff --git a/src/fetch.js b/src/fetch.js
index 8d6c7b8..73bf4e2 100644
--- a/src/fetch.js
+++ b/src/fetch.js
@@ -32,7 +32,8 @@ module.exports = function fetchPlugin(plugin_dir, plugins_dir, link, subdir, cal
if (link) {
fs.symlinkSync(plugin_dir, dest, 'dir');
} else {
- shell.cp('-R', plugin_dir, dest);
+ shell.mkdir('-p', dest);
+ shell.cp('-R', path.join(plugin_dir, '*') , dest);
}
if (callback) callback(null, dest);