Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordj2011-08-15 14:54:12 +0000
committerdj2011-08-15 14:54:12 +0000
commit88a328e8fbbd1ef4e5188b038a9823f005d3ab16 (patch)
treed2b021c6d6d5f3a37b8674e93f9feb8017647468
parentcf077ba68b15bba7254c10807e59fba2a4be9ac1 (diff)
downloadrt.equinox.p2-bug350088.tar.gz
rt.equinox.p2-bug350088.tar.xz
rt.equinox.p2-bug350088.zip
Bug 354737 - [touchpoint eclipse] RepositoryAction doesn't decrementbug350088
repo count before saving
-rw-r--r--bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/RepositoryAction.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/RepositoryAction.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/RepositoryAction.java
index 8f3c4d81e..06181cecd 100644
--- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/RepositoryAction.java
+++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/RepositoryAction.java
@@ -170,8 +170,8 @@ abstract class RepositoryAction extends ProvisioningAction {
Preferences node = getRepositoryPreferenceNode(agentLocation, null, event.getRepositoryLocation(), event.getRepositoryType());
int count = getRepositoryCount(node);
// modify the repository count before (potentially) removing the preference node
- setRepositoryCount(node, count);
- if (--count < 1 && manager != null)
+ setRepositoryCount(node, --count);
+ if (count < 1 && manager != null)
manager.removeRepository(event.getRepositoryLocation());
}

Back to the top