[Libosinfo] [osinfo-db-tools PATCH v4 3/3] import: Introduce "--latest" option
Fabiano Fidêncio
fidencio at redhat.com
Fri Dec 7 14:35:31 UTC 2018
On Fri, Dec 7, 2018 at 3:26 PM Felipe Borges <felipe10borges at gmail.com> wrote:
>
> On Fri, Dec 7, 2018 at 2:34 PM Fabiano Fidêncio <fidencio at redhat.com> wrote:
> >
> > diff --git a/tools/osinfo-db-import.c b/tools/osinfo-db-import.c
> > index e4b7824..2117084 100644
> > --- a/tools/osinfo-db-import.c
> > +++ b/tools/osinfo-db-import.c
> >
> > + info = g_file_query_info(file, "standard", G_FILE_QUERY_INFO_NONE, NULL, &err);
> > + if (err != NULL) {
> > + /* In the case the file was not found, it just means that there's no
> > + * osinfo-db installed in the specified, directory. Let's just return
> > + * TRUE and proceed normally from here. */
> > + if (err->code == G_IO_ERROR_NOT_FOUND) {
>
> I guess you could be using g_error_matches here.
Right, I'll also change that locally. Thanks!
More information about the Libosinfo
mailing list