Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2010-04-23 19:25:10 +0000
committerDJ Houghton2010-04-23 19:25:10 +0000
commit386d2f6c6da38eeac681149813e82c2224f43c31 (patch)
tree6fe241b77ea672ee4a238f75e83fe6361e424949 /bundles
parent096e3699ba65487350e9f92aaf20e0cc0ee05ce5 (diff)
downloadrt.equinox.p2-386d2f6c6da38eeac681149813e82c2224f43c31.tar.gz
rt.equinox.p2-386d2f6c6da38eeac681149813e82c2224f43c31.tar.xz
rt.equinox.p2-386d2f6c6da38eeac681149813e82c2224f43c31.zip
Bug 310320 - [publisher] Publisher creating extra IU fragments when not necessary
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/eclipse/BundlesAction.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/eclipse/BundlesAction.java b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/eclipse/BundlesAction.java
index d59813da5..3c5e68aed 100644
--- a/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/eclipse/BundlesAction.java
+++ b/bundles/org.eclipse.equinox.p2.publisher/src/org/eclipse/equinox/p2/publisher/eclipse/BundlesAction.java
@@ -248,10 +248,9 @@ public class BundlesAction extends AbstractPublisherAction {
private IInstallableUnitFragment createHostLocalizationFragment(IInstallableUnit bundleIU, BundleDescription bd, String hostId, String[] hostBundleManifestValues) {
Map<Locale, Map<String, String>> hostLocalizations = getHostLocalizations(new File(bd.getLocation()), hostBundleManifestValues);
- if (hostLocalizations != null) {
- return createLocalizationFragmentOfHost(bd, hostId, hostBundleManifestValues, hostLocalizations);
- }
- return null;
+ if (hostLocalizations == null || hostLocalizations.isEmpty())
+ return null;
+ return createLocalizationFragmentOfHost(bd, hostId, hostBundleManifestValues, hostLocalizations);
}
/*

Back to the top