You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bh...@apache.org on 2014/04/24 15:17:46 UTC
[2/2] git commit: CB-2606 Andriod icon - do not attempt copy to
undefined path
CB-2606 Andriod icon - do not attempt copy to undefined path
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/bceca90d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/bceca90d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/bceca90d
Branch: refs/heads/master
Commit: bceca90d4f4c5dec88f3d0023350b8453d752870
Parents: bc86dc6
Author: Bryan Higgins <bh...@blackberry.com>
Authored: Thu Apr 24 09:16:30 2014 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Thu Apr 24 09:16:30 2014 -0400
----------------------------------------------------------------------
src/metadata/android_parser.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/bceca90d/src/metadata/android_parser.js
----------------------------------------------------------------------
diff --git a/src/metadata/android_parser.js b/src/metadata/android_parser.js
index 8f67e4a..a460fa8 100644
--- a/src/metadata/android_parser.js
+++ b/src/metadata/android_parser.js
@@ -153,8 +153,10 @@ module.exports.prototype = {
}
}
}
- events.emit('verbose', 'Copying icon from ' + srcfilepath + ' to ' + destfilepath);
- shell.cp('-f', srcfilepath, destfilepath);
+ if (srcfilepath) {
+ events.emit('verbose', 'Copying icon from ' + srcfilepath + ' to ' + destfilepath);
+ shell.cp('-f', srcfilepath, destfilepath);
+ }
}.bind(this);
for (var density in densities) {
copyIcon(density);