Blame SOURCES/0001-oci-Handle-cancellations-for-appstream.patch

19210e
From 3ad6fe680cf3804193c8a4fe4f9f6e8840ef3524 Mon Sep 17 00:00:00 2001
19210e
From: Matthias Clasen <mclasen@redhat.com>
19210e
Date: Wed, 17 Apr 2019 11:40:26 -0400
19210e
Subject: [PATCH 1/3] oci: Handle cancellations for appstream
19210e
19210e
When an appstream update is cancelled while downloading
19210e
icons, properly fail. Otherwise, the next update attempt
19210e
will see an up-to-date timestamp, think everyhing is ok
19210e
and not download the missing icons.
19210e
19210e
Closes: https://github.com/flatpak/flatpak/issues/2835
19210e
19210e
Closes: #2836
19210e
Approved by: alexlarsson
19210e
19210e
(cherry picked from commit f28e62add1eb508bbfe97aab94743b129d1422ee)
19210e
---
19210e
 common/flatpak-oci-registry.c | 3 +++
19210e
 1 file changed, 3 insertions(+)
19210e
19210e
diff --git a/common/flatpak-oci-registry.c b/common/flatpak-oci-registry.c
19210e
index fe9afbdd..1a6edb76 100644
19210e
--- a/common/flatpak-oci-registry.c
19210e
+++ b/common/flatpak-oci-registry.c
19210e
@@ -2473,6 +2473,9 @@ flatpak_oci_index_make_appstream (SoupSession  *soup_session,
19210e
         }
19210e
     }
19210e
 
19210e
+  if (g_cancellable_set_error_if_cancelled (cancellable, error))
19210e
+    return NULL;
19210e
+
19210e
   if (!flatpak_appstream_xml_root_to_data (appstream_root,
19210e
                                            &bytes, NULL, error))
19210e
     return NULL;
19210e
-- 
19210e
2.21.0
19210e