[Releng] Update RepositoryIntegrityAnalyzer to deal with pack.gz
The p2 framework can no longer process pack.gz to check for signatures.
diff --git a/plugins/org.eclipse.oomph.p2.core/src/org/eclipse/oomph/p2/internal/core/RepositoryIntegrityAnalyzer.java b/plugins/org.eclipse.oomph.p2.core/src/org/eclipse/oomph/p2/internal/core/RepositoryIntegrityAnalyzer.java
index 54a4840..4853949 100644
--- a/plugins/org.eclipse.oomph.p2.core/src/org/eclipse/oomph/p2/internal/core/RepositoryIntegrityAnalyzer.java
+++ b/plugins/org.eclipse.oomph.p2.core/src/org/eclipse/oomph/p2/internal/core/RepositoryIntegrityAnalyzer.java
@@ -1688,7 +1688,7 @@
for (IInstallableUnit iu : allIUs)
{
Map<String, Boolean> iuArtifacts = getIUArtifacts(iu);
- if (iuArtifacts.containsValue(Boolean.FALSE))
+ if (!iuArtifacts.isEmpty() && !iuArtifacts.containsValue(Boolean.TRUE) && !iuArtifacts.containsValue(null))
{
unsignedIUs.add(iu);
}
@@ -1889,7 +1889,6 @@
public Map<List<Certificate>, Map<String, IInstallableUnit>> getCertificates()
{
if (certificates == null)
-
{
int prefixLength = artifactCacheFolder.toString().length() + 1;
certificates = new TreeMap<>(CERTIFICATE_COMPARATOR);
@@ -1900,7 +1899,7 @@
for (File file : files)
{
String path = file.toString().substring(prefixLength).replace('\\', '/');
- if (!path.startsWith("binary/"))
+ if (!path.startsWith("binary/") && !path.endsWith(".pack.gz"))
{
SignedContent signedContent = fileSignedContents.get(file);
if (signedContent != null && signedContent.isSigned())