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 2013/08/06 22:54:30 UTC

git commit: [CB-4513] Adding logic to remove lib-files at uninstall

Updated Branches:
  refs/heads/master f713bbc16 -> 2ff0e708b


[CB-4513] Adding logic to remove lib-files at uninstall


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

Branch: refs/heads/master
Commit: 2ff0e708b39b274ff8ed4bd02b3493345dd9bcf9
Parents: f713bbc
Author: Jeffrey Heifetz <jh...@blackberry.com>
Authored: Tue Aug 6 14:40:22 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Tue Aug 6 16:55:41 2013 -0400

----------------------------------------------------------------------
 src/uninstall.js | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/2ff0e708/src/uninstall.js
----------------------------------------------------------------------
diff --git a/src/uninstall.js b/src/uninstall.js
index 31117af..c0cddf5 100644
--- a/src/uninstall.js
+++ b/src/uninstall.js
@@ -132,6 +132,7 @@ function handleUninstall(actions, platform, plugin_id, plugin_et, project_dir, w
     if (platformTag) {
         var sourceFiles = platformTag.findall('./source-file'),
             headerFiles = platformTag.findall('./header-file'),
+            libFiles = platformTag.findall('./lib-file'),
             resourceFiles = platformTag.findall('./resource-file');
         assets = assets.concat(platformTag.findall('./asset'));
 
@@ -147,6 +148,10 @@ function handleUninstall(actions, platform, plugin_id, plugin_et, project_dir, w
         resourceFiles && resourceFiles.forEach(function(resource) {
             actions.push(actions.createAction(handler["resource-file"].uninstall, [resource, project_dir], handler["resource-file"].install, [resource, plugin_dir, project_dir]));
         });
+
+        libFiles && libFiles.forEach(function(source) {
+            actions.push(actions.createAction(handler["lib-file"].uninstall, [source, project_dir, plugin_id], handler["lib-file"].install, [source, plugin_dir, project_dir, plugin_id]));
+        });
     }
 
     // queue up asset installation