From 1e22b94c8cae602df3b0848b4648fccccf4afcd2 Mon Sep 17 00:00:00 2001 From: Ed Merks Date: Sun, 13 Nov 2022 11:57:00 +0100 Subject: [PATCH] Enhance the aggregator to handle problems with expired signatures https://github.com/eclipse-cbi/p2repo-aggregator/issues/12 --- .../META-INF/MANIFEST.MF | 4 + .../plugin.xml | 7 + .../cbi/p2repo/aggregator/engine/Builder.java | 14 + .../aggregator/engine/MirrorGenerator.java | 102 ++++++- .../aggregator/engine/SignatureCleaner.java | 285 ++++++++++++++++++ .../engine/ValidationSetVerifier.java | 3 +- .../org/eclipse/cbi/p2repo/cli/Headless.java | 2 +- 7 files changed, 400 insertions(+), 17 deletions(-) create mode 100644 plugins/org.eclipse.cbi.p2repo.aggregator.engine/src/org/eclipse/cbi/p2repo/aggregator/engine/SignatureCleaner.java diff --git a/plugins/org.eclipse.cbi.p2repo.aggregator.engine/META-INF/MANIFEST.MF b/plugins/org.eclipse.cbi.p2repo.aggregator.engine/META-INF/MANIFEST.MF index 37711046c..f73785d9d 100644 --- a/plugins/org.eclipse.cbi.p2repo.aggregator.engine/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.cbi.p2repo.aggregator.engine/META-INF/MANIFEST.MF @@ -37,3 +37,7 @@ Require-Bundle: org.apache.ant, org.eclipse.cbi.p2repo.p2.maven Bundle-Vendor: %providerName Automatic-Module-Name: org.eclipse.cbi.p2repo.aggregator.engine +Import-Package: org.bouncycastle.openpgp, + org.bouncycastle.openpgp.bc, + org.bouncycastle.bcpg, + org.bouncycastle.openpgp.jcajce diff --git a/plugins/org.eclipse.cbi.p2repo.aggregator.engine/plugin.xml b/plugins/org.eclipse.cbi.p2repo.aggregator.engine/plugin.xml index 1df2f9e26..3d682fb0c 100644 --- a/plugins/org.eclipse.cbi.p2repo.aggregator.engine/plugin.xml +++ b/plugins/org.eclipse.cbi.p2repo.aggregator.engine/plugin.xml @@ -15,6 +15,13 @@ name="modify"> + + + +