You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2017/01/18 01:56:34 UTC

[17/50] [abbrv] cordova-lib git commit: CB-12261: fix subdirectories deprecated warning always shows and stop fetch caused by CB-11979

CB-12261: fix subdirectories deprecated warning always shows and stop fetch caused by CB-11979

 This closes #511


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

Branch: refs/heads/fetch-1.0.x
Commit: 4191fa9b25b06140c58037ab9b504d6c9b9b064d
Parents: df2da4c
Author: Wilson Yang <wi...@paloaltonetworks.com>
Authored: Fri Dec 16 15:18:52 2016 -0800
Committer: Steve Gill <st...@gmail.com>
Committed: Thu Jan 5 15:01:47 2017 -0800

----------------------------------------------------------------------
 cordova-lib/src/plugman/fetch.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/4191fa9b/cordova-lib/src/plugman/fetch.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/fetch.js b/cordova-lib/src/plugman/fetch.js
index 036558e..6e80c68 100644
--- a/cordova-lib/src/plugman/fetch.js
+++ b/cordova-lib/src/plugman/fetch.js
@@ -69,7 +69,7 @@ function fetchPlugin(plugin_src, plugins_dir, options) {
                 options.subdir = result[2];
             //if --fetch was used, throw error for subdirectories
 
-            if(options.subdir) {
+            if (options.subdir && options.subdir !== '.') {
                 events.emit('warn', 'support for subdirectories is deprecated and will be removed in Cordova@7');
                 if (options.fetch) {
                     return Q.reject(new CordovaError('--fetch does not support subdirectories'));


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