You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sg...@apache.org on 2014/09/23 09:24:25 UTC

git commit: CB-7617 Deploy on WP8.1 incorrectly handles --target name

Repository: cordova-windows
Updated Branches:
  refs/heads/master 36b20a7b4 -> 27c5ab8b8


CB-7617 Deploy on WP8.1 incorrectly handles --target name


Project: http://git-wip-us.apache.org/repos/asf/cordova-windows/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-windows/commit/27c5ab8b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-windows/tree/27c5ab8b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-windows/diff/27c5ab8b

Branch: refs/heads/master
Commit: 27c5ab8b8b5c1a010adedea30191da7ed9ec2496
Parents: 36b20a7
Author: sgrebnov <v-...@microsoft.com>
Authored: Tue Sep 23 11:24:09 2014 +0400
Committer: sgrebnov <v-...@microsoft.com>
Committed: Tue Sep 23 11:24:09 2014 +0400

----------------------------------------------------------------------
 windows/template/cordova/lib/package.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/27c5ab8b/windows/template/cordova/lib/package.js
----------------------------------------------------------------------
diff --git a/windows/template/cordova/lib/package.js b/windows/template/cordova/lib/package.js
index 6538fdd..ad609ed 100644
--- a/windows/template/cordova/lib/package.js
+++ b/windows/template/cordova/lib/package.js
@@ -105,9 +105,10 @@ module.exports.getPackageName = function (platformPath) {
 // returns one of available devices which name match with parovided string
 // return rejected promise if device with name specified not found
 module.exports.findDevice = function (target) {
+    target = target.toLowerCase();
     return module.exports.listDevices().then(function(deviceList) {
         for (var idx in deviceList){
-            if (deviceList[idx].indexOf(target) > -1) {
+            if (deviceList[idx].toLowerCase() == target) {
                 return Q.resolve(idx);
             }
         }