You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/08/30 06:03:04 UTC
[1/2] git commit: replace non-words in package name with underscore
Updated Branches:
refs/heads/cordova-client bb485e10e -> bbf14c5ce
replace non-words in package name with underscore
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/commit/bbf14c5c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/tree/bbf14c5c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/diff/bbf14c5c
Branch: refs/heads/cordova-client
Commit: bbf14c5cecd53d614207ea0005216d30cde6bd2f
Parents: de8a06d
Author: Fil Maj <ma...@gmail.com>
Authored: Wed Aug 29 21:02:56 2012 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Wed Aug 29 21:02:56 2012 -0700
----------------------------------------------------------------------
src/platform.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/bbf14c5c/src/platform.js
----------------------------------------------------------------------
diff --git a/src/platform.js b/src/platform.js
index e82e5fa..a6dea00 100644
--- a/src/platform.js
+++ b/src/platform.js
@@ -79,7 +79,7 @@ module.exports = function platform(command, target, callback) {
} catch(e) {
// Doesn't exist, continue.
var bin = path.join(__dirname, '..', 'lib', target, 'bin', 'create');
- var pkg = cfg.packageName();
+ var pkg = cfg.packageName().replace(/\W/g,'_');
var name = cfg.name().replace(/\W/g,'_');
var command = util.format('%s "%s" "%s" "%s"', bin, output, pkg, name);
exec(command, flow.set({