diff options
author | DJ Houghton | 2010-05-07 17:06:46 +0000 |
---|---|---|
committer | DJ Houghton | 2010-05-07 17:06:46 +0000 |
commit | 1fc943c80508f95808ae7f04f0df1e9a2441a4fa (patch) | |
tree | 7eb8b238ffcf430020a0da4a5cff89a2c409a4d6 /bundles/org.eclipse.equinox.p2.directorywatcher | |
parent | 04bcf30e59fd95aa751e875e46e77f0dc5a09281 (diff) | |
download | rt.equinox.p2-1fc943c80508f95808ae7f04f0df1e9a2441a4fa.tar.gz rt.equinox.p2-1fc943c80508f95808ae7f04f0df1e9a2441a4fa.tar.xz rt.equinox.p2-1fc943c80508f95808ae7f04f0df1e9a2441a4fa.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.java | 16 |
1 files changed, 10 insertions, 6 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 b57d482cb..c4db322a4 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 @@ -240,9 +240,11 @@ 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 && 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)); + if (filename == null) { + if (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 { File artifactFile = new File(filename); if (removedFiles.contains(artifactFile)) @@ -264,9 +266,11 @@ 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 && 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)); + if (filename == null) { + if (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 { File iuFile = new File(filename); Long iuLastModified = new Long(iu.getProperty(FILE_LAST_MODIFIED)); |