cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [2/2] git commit: CB-5647 Delete .staging directory if one is found (no longer used).
Date Thu, 27 Feb 2014 01:53:49 GMT
CB-5647 Delete .staging directory if one is found (no longer used).


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

Branch: refs/heads/master
Commit: aa7fe855a6a01dc152627f50218e87444d1a3ffd
Parents: b709767
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Wed Feb 26 20:53:09 2014 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Wed Feb 26 20:53:09 2014 -0500

----------------------------------------------------------------------
 src/prepare.js | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/aa7fe855/src/prepare.js
----------------------------------------------------------------------
diff --git a/src/prepare.js b/src/prepare.js
index 09e343e..3c0d4dd 100644
--- a/src/prepare.js
+++ b/src/prepare.js
@@ -79,6 +79,12 @@ exports = module.exports = function prepare(options) {
                     }
                 }
 
+                var stagingPath = path.join(platformPath, '.staging');
+                if (fs.existsSync(stagingPath)) {
+                    events.emit('log', 'Deleting now-obsolete intermediate directory: ' +
stagingPath);
+                    shell.rm('-rf', stagingPath);
+                }
+
                 var platform_www = path.join(platformPath, 'platform_www');
                 // Create platfom_www if project was created with older version.
                 if (!fs.existsSync(platform_www)) {


Mime
View raw message