Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
OCI: extract appstream data for runtimes
Runtimes also have appstream data - with description, license information,
and so forth, so we should extract the appstream data from the index
for refs that start with runtime/ as well.
  • Loading branch information
owtaylor authored and alexlarsson committed Sep 11, 2020
1 parent 59f582e commit 25ff009
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/flatpak-oci-registry.c
Expand Up @@ -3120,7 +3120,8 @@ add_image_to_appstream (SoupSession *soup_session,
return;

ref_parts = g_strsplit (ref, "/", -1);
if (g_strv_length (ref_parts) != 4 || strcmp (ref_parts[0], "app") != 0)
if (g_strv_length (ref_parts) != 4 ||
(strcmp (ref_parts[0], "app") != 0 && strcmp (ref_parts[0], "runtime") != 0))
return;

id = ref_parts[1];
Expand Down

0 comments on commit 25ff009

Please sign in to comment.