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.

(cherry picked from commit 25ff00994f)
This commit is contained in:
Owen W. Taylor
2020-09-09 16:14:57 -04:00
committed by Alexander Larsson
parent 636d92ab94
commit cb7e9cf042

View File

@@ -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];