mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-10 11:12:46 -04:00
app: Check appstream file not found error code
Now that we switched from appstream-glib we don't need this hack. See https://github.com/ximion/appstream/pull/362
This commit is contained in:
committed by
Phaedrus Leeds
parent
44117ee0cb
commit
924d71d5d2
@@ -1137,11 +1137,9 @@ flatpak_dir_load_appstream_store (FlatpakDir *self,
|
||||
success = (local_error == NULL);
|
||||
#endif
|
||||
|
||||
/* We want to ignore ENOENT error as it is harmless and valid
|
||||
* FIXME: appstream-glib doesn't have granular file-not-found error
|
||||
* See: https://github.com/hughsie/appstream-glib/pull/268 */
|
||||
/* We want to ignore ENOENT error as it is harmless and valid */
|
||||
if (local_error != NULL &&
|
||||
g_str_has_suffix (local_error->message, "No such file or directory"))
|
||||
g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
|
||||
g_clear_error (&local_error);
|
||||
else if (local_error != NULL)
|
||||
g_propagate_error (error, g_steal_pointer (&local_error));
|
||||
|
||||
Reference in New Issue
Block a user