Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2008-04-04 22:10:04 +0000
committerAndrew Niefer2008-04-04 22:10:04 +0000
commit432ff7a6579fee7122f40952f85f597979af02f2 (patch)
tree1b0d1ff69c686458be01d5fdd720a76dd0a01ab8
parent81532c891fb83e040e188a3c093e3001ea6f073a (diff)
downloadrt.equinox.p2-432ff7a6579fee7122f40952f85f597979af02f2.tar.gz
rt.equinox.p2-432ff7a6579fee7122f40952f85f597979af02f2.tar.xz
rt.equinox.p2-432ff7a6579fee7122f40952f85f597979af02f2.zip
bug 225405 - singleton product CUs
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/provisional/p2/metadata/generator/Generator.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/provisional/p2/metadata/generator/Generator.java b/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/provisional/p2/metadata/generator/Generator.java
index 009e7e3bd..8ea9611b3 100644
--- a/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/provisional/p2/metadata/generator/Generator.java
+++ b/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/provisional/p2/metadata/generator/Generator.java
@@ -706,6 +706,7 @@ public class Generator {
iu.setId(launcherId);
Version launcherVersion = new Version(version);
iu.setVersion(launcherVersion);
+ iu.setSingleton(true);
String filter = "(& (osgi.ws=" + ws + ") (osgi.os=" + os + ") (osgi.arch=" + arch + "))"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
iu.setFilter(filter);
@@ -801,6 +802,7 @@ public class Generator {
Version cuVersion = new Version(productFile.getVersion());
cu.setId(configUnitId);
cu.setVersion(cuVersion);
+ cu.setSingleton(true);
cu.setFilter("(& (osgi.ws=" + ws + ") (osgi.os=" + os + ") (osgi.arch=" + arch + "))"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
ProvidedCapability productConfigCapability = MetadataFactory.createProvidedCapability(info.getFlavor() + productFile.getId(), productFile.getId() + PRODUCT_CONFIG_SUFFIX, cuVersion);
@@ -848,6 +850,7 @@ public class Generator {
Version cuVersion = new Version(version);
cu.setId(configUnitId);
cu.setVersion(cuVersion);
+ cu.setSingleton(true);
cu.setFilter("(& (osgi.ws=" + ws + ") (osgi.os=" + os + ") (osgi.arch=" + arch + "))"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
ProvidedCapability productIniCapability = MetadataFactory.createProvidedCapability(info.getFlavor() + productFile.getId(), productFile.getId() + PRODUCT_INI_SUFFIX, cuVersion);

Back to the top