cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [21/50] git commit: Taking care of dashes in amazon-fireos platform name.
Date Fri, 05 Sep 2014 18:14:26 GMT
Taking care of dashes in amazon-fireos platform name.


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

Branch: refs/heads/master
Commit: 6491f0c35774284528277586d515bafde5d5966d
Parents: d3cffc8
Author: Archana Naik <naika@lab126.com>
Authored: Thu Aug 14 12:06:39 2014 -0700
Committer: Anis Kadri <anis@apache.org>
Committed: Fri Sep 5 11:12:18 2014 -0700

----------------------------------------------------------------------
 cordova-lib/src/cordova/platform.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/6491f0c3/cordova-lib/src/cordova/platform.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/platform.js b/cordova-lib/src/cordova/platform.js
index dca8ed4..2cb8c2e 100644
--- a/cordova-lib/src/cordova/platform.js
+++ b/cordova-lib/src/cordova/platform.js
@@ -111,6 +111,9 @@ function add(hooks, projectRoot, targets, opts) {
                 // Package names for Cordova platforms look like "cordova-ios".
                 var nameParts = pkg.name.split('-');
                 var name = nameParts[1];
+                if (name == 'amazon') {
+                    name = 'amazon-fireos';
+                }
                 if( !platforms[name] ) {
                     throw new CordovaError(msg);
                 }


Mime
View raw message