From 2be14441fc8a37f1de8438720820097faabc75e3 Mon Sep 17 00:00:00 2001 From: Ed Merks Date: Sat, 4 Nov 2023 10:09:07 +0100 Subject: [PATCH] Don't attempt to PGP verify folder-based content https://github.com/eclipse-equinox/p2/issues/374 --- .../artifact/repository/simple/SimpleArtifactRepository.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 a03cf5a08e..56f1c786f6 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 @@ -473,7 +473,10 @@ private synchronized OutputStream addPostSteps(ProcessingStepHandler handler, IA Set skipChecksums = ARTIFACT_MD5_CHECKSUM_ENABLED ? Collections.emptySet() : Collections.singleton(ChecksumHelper.MD5); addChecksumVerifiers(descriptor, steps, skipChecksums, IArtifactDescriptor.ARTIFACT_CHECKSUM); - addPGPSignatureVerifier(descriptor, steps); + + if (!isFolderBased(descriptor)) { + addPGPSignatureVerifier(descriptor, steps); + } if (steps.isEmpty()) return destination;