Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Merks2022-02-14 13:34:20 +0000
committerEd Merks2022-02-14 14:12:05 +0000
commitd2d409e7462d09140645e5b1689dffb3f826f9bb (patch)
tree72514e75822f89a990072927ea415a0066cc3619
parenteafea5eb362fe8926616062b2ce769fca9ae8833 (diff)
downloadrt.equinox.p2-d2d409e7462d09140645e5b1689dffb3f826f9bb.tar.gz
rt.equinox.p2-d2d409e7462d09140645e5b1689dffb3f826f9bb.tar.xz
rt.equinox.p2-d2d409e7462d09140645e5b1689dffb3f826f9bb.zip
Bug 578726 - "No digest algorithm is available to verify download of
..." Don't produce this warning for a local repository. The artifacts are already on disk, so no chance that can be corrupted during download. In addition, artifacts in a local repository will often have all the properties they had while in the remote repository stripped during download process. Change-Id: Ie1aab2d7cd24587a94469e657100fd74c77894cb Signed-off-by: Ed Merks <ed.merks@gmail.com> Reviewed-on: https://git.eclipse.org/r/c/equinox/rt.equinox.p2/+/190773
-rw-r--r--bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java
index 1de35b41f..b13c03692 100644
--- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java
+++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java
@@ -514,7 +514,7 @@ public class SimpleArtifactRepository extends AbstractArtifactRepository impleme
Set<String> skipChecksums = DOWNLOAD_MD5_CHECKSUM_ENABLED ? Collections.emptySet() : Collections.singleton(ChecksumHelper.MD5);
ArrayList<ProcessingStep> downloadChecksumSteps = new ArrayList<>();
addChecksumVerifiers(descriptor, downloadChecksumSteps, skipChecksums, IArtifactDescriptor.DOWNLOAD_CHECKSUM);
- if (downloadChecksumSteps.isEmpty()) {
+ if (downloadChecksumSteps.isEmpty() && !isLocal()) {
LogHelper.log(new Status(IStatus.WARNING, Activator.ID,
NLS.bind(Messages.noDigestAlgorithmToVerifyDownload, descriptor.getArtifactKey())));
}

Back to the top