cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject cordova-lib git commit: use string method for clarity
Date Tue, 07 Apr 2015 19:46:32 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master b863b532f -> 2cdd710dd


use string method for clarity


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/2cdd710d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/2cdd710d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/2cdd710d

Branch: refs/heads/master
Commit: 2cdd710dd12d3c9f46cf76a8e4d23da87b33af0d
Parents: b863b53
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Tue Apr 7 12:30:45 2015 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Tue Apr 7 12:46:16 2015 -0700

----------------------------------------------------------------------
 cordova-lib/src/plugman/fetch.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/2cdd710d/cordova-lib/src/plugman/fetch.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/fetch.js b/cordova-lib/src/plugman/fetch.js
index 0d7293e..e449bd4 100644
--- a/cordova-lib/src/plugman/fetch.js
+++ b/cordova-lib/src/plugman/fetch.js
@@ -239,11 +239,14 @@ function findLocalPlugin(plugin_src, searchpath, pluginInfoProvider)
{
 
 // Copy or link a plugin from plugin_dir to plugins_dir/plugin_id.
 function copyPlugin(pinfo, plugins_dir, link) {
+
     var plugin_dir = pinfo.dir;
     var dest = path.join(plugins_dir, pinfo.id);
+
+
     shell.rm('-rf', dest);
     if (link) {
-        var isRelativePath = plugin_dir[1] != ':' && plugin_dir[0] != path.sep;
+        var isRelativePath = plugin_dir.charAt(1) != ':' && plugin_dir.charAt(0)
!= path.sep;
         var fixedPath = isRelativePath ? path.join(path.relative(plugins_dir, process.env.PWD
|| process.cwd()), plugin_dir) : plugin_dir;
         events.emit('verbose', 'Linking "' + dest + '" => "' + fixedPath + '"');
         fs.symlinkSync(fixedPath, dest, 'dir');


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message