Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
flatpak.28335
0002-oci-Handle-cancellations-for-appstream.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-oci-Handle-cancellations-for-appstream.patch of Package flatpak.28335
From 10772b0786a1be12c47499176cf1039af688d849 Mon Sep 17 00:00:00 2001 From: Matthias Clasen <mclasen@redhat.com> Date: Wed, 17 Apr 2019 11:40:26 -0400 Subject: [PATCH] oci: Handle cancellations for appstream When an appstream update is cancelled while downloading icons, properly fail. Otherwise, the next update attempt will see an up-to-date timestamp, think everyhing is ok and not download the missing icons. Closes: https://github.com/flatpak/flatpak/issues/2835 Closes: #2836 Approved by: alexlarsson (cherry picked from commit f28e62add1eb508bbfe97aab94743b129d1422ee) Closes: #3115 Approved by: alexlarsson --- common/flatpak-oci-registry.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/flatpak-oci-registry.c b/common/flatpak-oci-registry.c index fe9afbdd4..1a6edb763 100644 --- a/common/flatpak-oci-registry.c +++ b/common/flatpak-oci-registry.c @@ -2473,6 +2473,9 @@ flatpak_oci_index_make_appstream (SoupSession *soup_session, } } + if (g_cancellable_set_error_if_cancelled (cancellable, error)) + return NULL; + if (!flatpak_appstream_xml_root_to_data (appstream_root, &bytes, NULL, error)) return NULL;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor