Blame SOURCES/3845.patch

321060
From 7ad549b89dfbfb67fd1cbbf6cafdd996e4722246 Mon Sep 17 00:00:00 2001
321060
From: "Owen W. Taylor" <otaylor@fishsoup.net>
321060
Date: Wed, 9 Sep 2020 16:14:57 -0400
321060
Subject: [PATCH] OCI: extract appstream data for runtimes
321060
321060
Runtimes also have appstream data - with description, license information,
321060
and so forth, so we should extract the appstream data from the index
321060
for refs that start with runtime/ as well.
321060
---
321060
 common/flatpak-oci-registry.c | 3 ++-
321060
 1 file changed, 2 insertions(+), 1 deletion(-)
321060
321060
diff --git a/common/flatpak-oci-registry.c b/common/flatpak-oci-registry.c
321060
index cf501a5eb..0f7471129 100644
321060
--- a/common/flatpak-oci-registry.c
321060
+++ b/common/flatpak-oci-registry.c
321060
@@ -3120,7 +3120,8 @@ add_image_to_appstream (SoupSession               *soup_session,
321060
     return;
321060
 
321060
   ref_parts = g_strsplit (ref, "/", -1);
321060
-  if (g_strv_length (ref_parts) != 4 || strcmp (ref_parts[0], "app") != 0)
321060
+  if (g_strv_length (ref_parts) != 4 ||
321060
+      (strcmp (ref_parts[0], "app") != 0 && strcmp (ref_parts[0], "runtime") != 0))
321060
     return;
321060
 
321060
   id = ref_parts[1];