Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2010-05-06 15:02:16 +0000
committerDJ Houghton2010-05-06 15:02:16 +0000
commit836d4f6cc33edf0465380ca9fce9866712202048 (patch)
treebd92675b470e34d9365d5fe47c1fc345f1ec41e7 /bundles/org.eclipse.equinox.p2.directorywatcher
parentfb0c7cdf739ff8bf0c5f34f28dc69bbe674d8103 (diff)
downloadrt.equinox.p2-836d4f6cc33edf0465380ca9fce9866712202048.tar.gz
rt.equinox.p2-836d4f6cc33edf0465380ca9fce9866712202048.tar.xz
rt.equinox.p2-836d4f6cc33edf0465380ca9fce9866712202048.zip
Bug 275274 - [publisher] "translated_host_properties is missing the filename property" error
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.directorywatcher')
-rw-r--r--bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java
index e84e91e53..b57d482cb 100644
--- a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java
+++ b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java
@@ -17,6 +17,7 @@ import java.util.*;
import org.eclipse.core.runtime.*;
import org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactDescriptor;
import org.eclipse.equinox.internal.p2.core.helpers.LogHelper;
+import org.eclipse.equinox.internal.p2.core.helpers.Tracing;
import org.eclipse.equinox.internal.p2.update.Site;
import org.eclipse.equinox.p2.core.ProvisionException;
import org.eclipse.equinox.p2.metadata.IInstallableUnit;
@@ -239,7 +240,7 @@ public class RepositoryListener extends DirectoryChangeListener {
for (Iterator<IArtifactDescriptor> iterator = descriptors.iterator(); iterator.hasNext();) {
SimpleArtifactDescriptor descriptor = (SimpleArtifactDescriptor) iterator.next();
String filename = descriptor.getRepositoryProperty(FILE_NAME);
- if (filename == null) {
+ if (filename == null && Tracing.DEBUG) {
String message = NLS.bind(Messages.filename_missing, "artifact", descriptor.getArtifactKey()); //$NON-NLS-1$
LogHelper.log(new Status(IStatus.ERROR, Activator.ID, message, null));
} else {
@@ -263,7 +264,7 @@ public class RepositoryListener extends DirectoryChangeListener {
for (Iterator<IInstallableUnit> it = ius.iterator(); it.hasNext();) {
IInstallableUnit iu = it.next();
String filename = iu.getProperty(FILE_NAME);
- if (filename == null) {
+ if (filename == null && Tracing.DEBUG) {
String message = NLS.bind(Messages.filename_missing, "installable unit", iu.getId()); //$NON-NLS-1$
LogHelper.log(new Status(IStatus.ERROR, Activator.ID, message, null));
} else {

Back to the top