cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: CB-7745 Don't fail if plugins/ got deleted. Just recreate it.
Date Thu, 09 Oct 2014 14:48:39 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master f528ffd2d -> 60f731553


CB-7745 Don't fail if plugins/ got deleted. Just recreate it.


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

Branch: refs/heads/master
Commit: 60f731553f113c9feb4822f6a6072d4bdefa3639
Parents: f528ffd
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Thu Oct 9 10:47:57 2014 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Thu Oct 9 10:47:57 2014 -0400

----------------------------------------------------------------------
 cordova-lib/src/plugman/util/config-changes.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/60f73155/cordova-lib/src/plugman/util/config-changes.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/util/config-changes.js b/cordova-lib/src/plugman/util/config-changes.js
index daee709..665ab08 100644
--- a/cordova-lib/src/plugman/util/config-changes.js
+++ b/cordova-lib/src/plugman/util/config-changes.js
@@ -47,6 +47,7 @@ var fs   = require('fs'),
     platforms = require('./../platforms'),
     events = require('../../events'),
     plist_helpers = require('./../util/plist-helpers');
+var shelljs = require('shelljs');
 
 
 // These frameworks are required by cordova-ios by default. We should never add/remove them.
@@ -473,6 +474,7 @@ exports.save_platform_json = save_platform_json;
 function save_platform_json(config, plugins_dir, platform) {
     checkPlatform(platform);
     var filepath = path.join(plugins_dir, platform + '.json');
+    shelljs.mkdir('-p', plugins_dir);
     fs.writeFileSync(filepath, JSON.stringify(config, null, 4), 'utf-8');
 }
 


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


Mime
View raw message