mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-14 03:24:50 -04:00
OCI: Also look for the docker media type when looking manifests
We handle both types, so look for both.
This commit is contained in:
committed by
Alexander Larsson
parent
03e858a59e
commit
0fdec95fe0
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user