cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [10/51] [abbrv] git commit: Remove platform check in platform add and update
Date Wed, 27 Nov 2013 22:27:09 GMT
Remove platform check in platform add and update


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/20faff11
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/20faff11
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/20faff11

Branch: refs/heads/fireos
Commit: 20faff115b7f8b647e964e26fb0b9dd40f2bd31c
Parents: 86802d8
Author: SomaticIT <contact@somatic.fr>
Authored: Thu Nov 14 22:06:42 2013 +0100
Committer: SomaticIT <contact@somatic.fr>
Committed: Thu Nov 14 22:06:42 2013 +0100

----------------------------------------------------------------------
 src/platform.js | 8 --------
 1 file changed, 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/20faff11/src/platform.js
----------------------------------------------------------------------
diff --git a/src/platform.js b/src/platform.js
index 214d396..536969c 100644
--- a/src/platform.js
+++ b/src/platform.js
@@ -116,10 +116,6 @@ module.exports = function platform(command, targets) {
                 .then(function() {
                     return lazy_load.based_on_config(projectRoot, plat);
                 }).then(function(libDir) {
-                    // Check for platforms are in subdirectories into repositories
-                    if (["wp7", "wp8", "windows8", "windows81", "blackberry10"].indexOf(plat)
!== -1)
-                        libDir = path.join(libDir, target);
-
                     var script = path.join(libDir, 'bin', 'update');
                     var d = Q.defer();
                     child_process.exec(script + ' "' + path.join(projectRoot, 'platforms',
plat) + '"', function(err, stdout, stderr) {
@@ -226,10 +222,6 @@ function call_into_create(target, projectRoot, cfg, libDir, template_dir)
{
         events.emit('verbose', 'Checking if platform "' + target + '" passes minimum requirements...');
         return module.exports.supports(projectRoot, target)
         .then(function() {
-            // Check for platforms are in subdirectories into repositories
-            if (["wp7", "wp8", "windows8", "windows81", "blackberry10"].indexOf(target) !==
-1)
-                libDir = path.join(libDir, target);
-
             // Create a platform app using the ./bin/create scripts that exist in each repo.
             var bin = path.join(libDir, 'bin', 'create');
             var args = (target=='ios') ? '--arc' : '';


Mime
View raw message