Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2017-03-19 20:02:14 +0000
committerAndrey Loskutov2017-03-19 20:02:14 +0000
commit5d80db707e5e1ad4ba80efc920c58856c75c4228 (patch)
tree038c6b2a71e567c6a1a3dfb9fe5dbc430b36fa27 /bundles/org.eclipse.equinox.p2.publisher.eclipse
parentdec2ef35a315551f719435ee1bd53dfdf6495a48 (diff)
downloadrt.equinox.p2-5d80db707e5e1ad4ba80efc920c58856c75c4228.tar.gz
rt.equinox.p2-5d80db707e5e1ad4ba80efc920c58856c75c4228.tar.xz
rt.equinox.p2-5d80db707e5e1ad4ba80efc920c58856c75c4228.zip
compiler Change-Id: I3de8ff54e4efc354443ab2d99fd75316f2abacbb Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.publisher.eclipse')
-rw-r--r--bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/ProductFile.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/ProductFile.java b/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/ProductFile.java
index a1d37c742..2f89f0460 100644
--- a/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/ProductFile.java
+++ b/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/ProductFile.java
@@ -434,7 +434,13 @@ public class ProductFile extends DefaultHandler implements IProductDescriptor {
}
public boolean containsPlugin(String plugin) {
- return getBundles(true).contains(plugin);
+ List<IVersionedId> bundles = getBundles(true);
+ for (IVersionedId versionedId : bundles) {
+ if (versionedId.getId().equals(plugin)) {
+ return true;
+ }
+ }
+ return false;
}
public String[] getIcons() {

Back to the top