Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metadata: Document file not found error code #362

Merged
merged 1 commit into from Nov 10, 2021

Conversation

mwleeds
Copy link
Contributor

@mwleeds mwleeds commented Nov 10, 2021

While working on the port of Flatpak to libappstream[1] I noticed that
we currently don't have proper error checking when loading an appstream
file with appstream-glib that turns out not to exist.[2] appstream-glib
was patched to return G_IO_ERROR_NOT_FOUND in that case[3] and
libappstream already does so in its corresponding API, but this patch
documents that so that if the implementation here is changed it will
hopefully still meet this requirement.

[1] flatpak/flatpak#4426
[2] https://github.com/flatpak/flatpak/blob/284edffe89ecb78a19d01da065030d9f3bf31c76/app/flatpak-builtins-utils.c#L1169
[3] hughsie/appstream-glib#268

While working on the port of Flatpak to libappstream[1] I noticed that
we currently don't have proper error checking when loading an appstream
file with appstream-glib that turns out not to exist.[2] appstream-glib
was patched to return G_IO_ERROR_NOT_FOUND in that case[3] and
libappstream already does so in its corresponding API, but this patch
documents that so that if the implementation here is changed it will
hopefully still meet this requirement.

[1] flatpak/flatpak#4426
[2] https://github.com/flatpak/flatpak/blob/284edffe89ecb78a19d01da065030d9f3bf31c76/app/flatpak-builtins-utils.c#L1169
[3] hughsie/appstream-glib#268
mwleeds added a commit to pwithnall/flatpak that referenced this pull request Nov 10, 2021
Now that we switched from appstream-glib we don't need this hack.

See ximion/appstream#362
mwleeds added a commit to pwithnall/flatpak that referenced this pull request Nov 10, 2021
Now that we switched from appstream-glib we don't need this hack.

See ximion/appstream#362
mwleeds added a commit to pwithnall/flatpak that referenced this pull request Nov 10, 2021
Now that we switched from appstream-glib we don't need this hack.

See ximion/appstream#362
@ximion
Copy link
Owner

ximion commented Nov 10, 2021

Looks good, thank you for the patch! :-)

@ximion ximion merged commit e4e7fac into ximion:master Nov 10, 2021
10 checks passed
mwleeds added a commit to pwithnall/flatpak that referenced this pull request Nov 10, 2021
Now that we switched from appstream-glib we don't need this hack.

See ximion/appstream#362
mwleeds added a commit to pwithnall/flatpak that referenced this pull request Nov 15, 2021
Now that we switched from appstream-glib we don't need this hack.

See ximion/appstream#362
mwleeds added a commit to pwithnall/flatpak that referenced this pull request Jan 27, 2022
Now that we switched from appstream-glib we don't need this hack.

See ximion/appstream#362
mwleeds added a commit to flatpak/flatpak that referenced this pull request Feb 17, 2022
Now that we switched from appstream-glib we don't need this hack.

See ximion/appstream#362
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants