cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [5/6] cordova-lib git commit: Fix edge case where no assets folder exists but assets do (such as largeIcon.png)
Date Fri, 26 Jun 2015 01:06:23 GMT
Fix edge case where no assets folder exists but assets do (such as largeIcon.png)


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

Branch: refs/heads/master
Commit: 150402a220e8f9b3e80fb0b4a51946e7129d8dc7
Parents: 5503072
Author: Jason Robitaille <jason.robitaille@lge.com>
Authored: Mon Jun 15 14:49:21 2015 -0700
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Thu Jun 25 17:54:45 2015 -0700

----------------------------------------------------------------------
 cordova-lib/src/cordova/metadata/webos_parser.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/150402a2/cordova-lib/src/cordova/metadata/webos_parser.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/metadata/webos_parser.js b/cordova-lib/src/cordova/metadata/webos_parser.js
index 8f8edd8..3b5a969 100755
--- a/cordova-lib/src/cordova/metadata/webos_parser.js
+++ b/cordova-lib/src/cordova/metadata/webos_parser.js
@@ -72,6 +72,7 @@ webos_parser.prototype.update_from_config = function(config) {
         if(index===0 || index===1) {
             return src.substring(index+4);
         } else {
+            shell.mkdir('-p', path.join(www, 'assets'));
             var newSrc = 'assets/' + type + '.png';
             if(type==='icon') {
                 newSrc = 'icon.png';


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


Mime
View raw message