OCI: Also look for the docker media type when looking manifests

We handle both types, so look for both.
This commit is contained in:
Alexander Larsson
2020-06-11 15:43:16 +02:00
committed by Alexander Larsson
parent 03e858a59e
commit 0fdec95fe0

View File

@@ -502,7 +502,8 @@ const char *
flatpak_oci_manifest_descriptor_get_ref (FlatpakOciManifestDescriptor *m)
{
if (m->parent.mediatype == NULL ||
strcmp (m->parent.mediatype, FLATPAK_OCI_MEDIA_TYPE_IMAGE_MANIFEST) != 0)
(strcmp (m->parent.mediatype, FLATPAK_OCI_MEDIA_TYPE_IMAGE_MANIFEST) != 0 &&
strcmp (m->parent.mediatype, FLATPAK_DOCKER_MEDIA_TYPE_IMAGE_MANIFEST2) != 0))
return NULL;
if (m->parent.annotations == NULL)