[packagekit] I've broken all your nice backend code...
Daniel Nicoletti
dantti12 at gmail.com
Mon Jun 11 18:16:46 PDT 2012
2012/6/11 Daniel Nicoletti <dantti12 at gmail.com>:
> Also my backend had a missing symbol
> but I was only able to know what was the
> error when I added a debug line:
> if (handle == NULL) {
> g_set_error (error, 1, 0, "opening module %s failed : %s",
> backend_name, g_module_error ());
> ++++ g_debug ("opening module failed '%s'", g_module_error ());
> goto out;
> }
>
> Isn't something missing on "out:" perhaps?
Better yet use the error at:
/* load the backend */
ret = pk_engine_load_backend (engine, &error);
if (!ret) {
/* TRANSLATORS: cannot load the backend the user specified */
g_print ("%s: %s\n", _("Failed to load the backend:"),
backend_name);
goto out;
}
More information about the PackageKit
mailing list