diff options
author | Pascal Rapicault | 2010-05-09 13:31:27 +0000 |
---|---|---|
committer | Pascal Rapicault | 2010-05-09 13:31:27 +0000 |
commit | 6c7fb8623ef9bdc0105051f10511e1e1e2f55bca (patch) | |
tree | ccb9b14c2cd284ba3860b16bac36eae6726dfcb5 | |
parent | 012f999ce6cb2518bcad44dab0b4e5ed14301dbc (diff) | |
download | rt.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.
-rw-r--r-- | bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/p2/engine/ProvisioningContext.java | 2 |
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() { |