cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject cordova-lib git commit: CB-9421 Fixed searchpath parameter being ignored. This closes #269
Date Wed, 29 Jul 2015 06:20:28 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 4e5e30458 -> 10ec5b610


CB-9421 Fixed searchpath parameter being ignored. This closes #269


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

Branch: refs/heads/master
Commit: 10ec5b610ae98cfa0bbb1ea52b20578b65a59e08
Parents: 4e5e304
Author: alsorokin <alexander.sorokin@akvelon.com>
Authored: Tue Jul 28 15:44:26 2015 +0300
Committer: Vladimir Kotikov <v-vlkoti@microsoft.com>
Committed: Wed Jul 29 09:21:50 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/10ec5b61/cordova-lib/src/plugman/fetch.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/fetch.js b/cordova-lib/src/plugman/fetch.js
index 5003611..8e15085 100644
--- a/cordova-lib/src/plugman/fetch.js
+++ b/cordova-lib/src/plugman/fetch.js
@@ -236,7 +236,8 @@ function findLocalPlugin(plugin_src, searchpath, pluginInfoProvider) {
 
     versions.forEach(function(pinfo) {
         // Ignore versions that don't satisfy the the requested version range.
-        if (!semver.satisfies(pinfo.version, versionspec)) {
+        // Ignore -dev suffix because latest semver versions doesn't handle it properly (CB-9421)
+        if (!semver.satisfies(pinfo.version.replace(/-dev$/, ''), versionspec)) {
             return;
         }
         if (!latest) {


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


Mime
View raw message