Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordj2011-08-15 10:54:12 -0400
committerdj2011-08-15 11:19:49 -0400
commit6ad3803ddff01f39451208f48b449435335d695b (patch)
treeed38da35619c00e7b2569c852b5c9e40dfdba2ea /bundles/org.eclipse.equinox.p2.touchpoint.eclipse
parent0626eb111638f3ba2d4dadd339a9eaf912abcc12 (diff)
downloadrt.equinox.p2-6ad3803ddff01f39451208f48b449435335d695b.tar.gz
rt.equinox.p2-6ad3803ddff01f39451208f48b449435335d695b.tar.xz
rt.equinox.p2-6ad3803ddff01f39451208f48b449435335d695b.zip
Bug 354737 - [touchpoint eclipse] RepositoryAction doesn't decrement
repo count before saving
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.touchpoint.eclipse')
-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