mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-03 21:49:06 -04:00
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
This commit is contained in:
committed by
Atomic Bot
parent
5e710cb995
commit
f28e62add1
@@ -2465,6 +2465,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;
|
||||
|
||||
Reference in New Issue
Block a user