cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kam...@apache.org
Subject cordova-lib git commit: Allow subdirs for icons on BB10
Date Mon, 16 Mar 2015 23:01:29 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 41835f40f -> 374d2ac58


Allow subdirs for icons on BB10

GitHub: close #169


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

Branch: refs/heads/master
Commit: 374d2ac5846e331182164e25153fc2670674620d
Parents: 41835f4
Author: Mark Koudritsky <kamrik@gmail.com>
Authored: Mon Mar 16 18:58:41 2015 -0400
Committer: Mark Koudritsky <kamrik@gmail.com>
Committed: Mon Mar 16 18:58:41 2015 -0400

----------------------------------------------------------------------
 cordova-lib/src/cordova/metadata/blackberry10_parser.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/374d2ac5/cordova-lib/src/cordova/metadata/blackberry10_parser.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/metadata/blackberry10_parser.js b/cordova-lib/src/cordova/metadata/blackberry10_parser.js
index 7f5f5d1..65caccd 100644
--- a/cordova-lib/src/cordova/metadata/blackberry10_parser.js
+++ b/cordova-lib/src/cordova/metadata/blackberry10_parser.js
@@ -62,10 +62,10 @@ blackberry_parser.prototype.update_from_config = function(config) {
         for (i = 0; i < icons.length; i++) {
             var src = path.join(projectRoot, icons[i].src),
                 dest = path.join(this.path, 'platform_www', icons[i].src),
-                destFolder = path.join(dest, '..');
+                destFolder = path.dirname(dest);
 
             if (!fs.existsSync(destFolder)) {
-                shell.mkdir(destFolder); // make sure target dir exists
+                shell.mkdir('-p', destFolder); // make sure target dir exists
             }
             events.emit('verbose', 'Copying icon from ' + src + ' to ' + dest);
             shell.cp('-f', src, dest);


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


Mime
View raw message