incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [1/2] git commit: replace non-words in package name with underscore
Date Thu, 30 Aug 2012 04:03:04 GMT
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 <maj.fil@gmail.com>
Authored: Wed Aug 29 21:02:56 2012 -0700
Committer: Fil Maj <maj.fil@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({


Mime
View raw message