On Fri, Dec 7, 2018 at 3:26 PM Felipe Borges <felipe10borges@xxxxxxxxx> wrote: > > On Fri, Dec 7, 2018 at 2:34 PM Fabiano Fidêncio <fidencio@xxxxxxxxxx> 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! _______________________________________________ Libosinfo mailing list Libosinfo@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libosinfo