Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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