From 386d2f6c6da38eeac681149813e82c2224f43c31 Mon Sep 17 00:00:00 2001 From: DJ Houghton Date: Fri, 23 Apr 2010 19:25:10 +0000 Subject: Bug 310320 - [publisher] Publisher creating extra IU fragments when not necessary --- .../org/eclipse/equinox/p2/publisher/eclipse/BundlesAction.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bundles') 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> 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); } /* -- cgit v1.2.3