Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2010-05-09 13:31:27 +0000
committerPascal Rapicault2010-05-09 13:31:27 +0000
commit6c7fb8623ef9bdc0105051f10511e1e1e2f55bca (patch)
treeccb9b14c2cd284ba3860b16bac36eae6726dfcb5 /bundles/org.eclipse.equinox.p2.engine/src
parent012f999ce6cb2518bcad44dab0b4e5ed14301dbc (diff)
downloadrt.equinox.p2-6c7fb8623ef9bdc0105051f10511e1e1e2f55bca.tar.gz
rt.equinox.p2-6c7fb8623ef9bdc0105051f10511e1e1e2f55bca.tar.xz
rt.equinox.p2-6c7fb8623ef9bdc0105051f10511e1e1e2f55bca.zip
Bug 312175 - Repository references enabled although flag says disabled.
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.engine/src')
-rw-r--r--bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/ProvisioningContext.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/ProvisioningContext.java b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/ProvisioningContext.java
index 597c1ac80..47d55a0cc 100644
--- a/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/ProvisioningContext.java
+++ b/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/ProvisioningContext.java
@@ -240,7 +240,7 @@ public class ProvisioningContext {
// If the manager does not know about the repo, consider the reference enablement state
@SuppressWarnings("rawtypes")
private boolean isEnabled(IRepositoryManager manager, IRepositoryReference reference) {
- return (manager.contains(reference.getLocation()) && manager.isEnabled(reference.getLocation())) || ((!manager.contains(reference.getLocation())) && ((reference.getOptions() | IRepository.ENABLED) == IRepository.ENABLED));
+ return (manager.contains(reference.getLocation()) && manager.isEnabled(reference.getLocation())) || ((!manager.contains(reference.getLocation())) && ((reference.getOptions() & IRepository.ENABLED) == IRepository.ENABLED));
}
private boolean shouldFollowReferences() {

Back to the top