You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by br...@apache.org on 2013/05/14 19:55:37 UTC

git commit: Fix source and destination paths for installing plugins from local disk

Updated Branches:
  refs/heads/dependencies ab82a4248 -> 14eed99e0


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/14eed99e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/14eed99e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/14eed99e

Branch: refs/heads/dependencies
Commit: 14eed99e01d051c91f0a5357da1714684aa2a057
Parents: ab82a42
Author: Braden Shepherdson <br...@gmail.com>
Authored: Tue May 14 13:54:28 2013 -0400
Committer: Braden Shepherdson <br...@gmail.com>
Committed: Tue May 14 13:54:28 2013 -0400

----------------------------------------------------------------------
 src/fetch.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/14eed99e/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);