Blame SOURCES/3845.patch

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