On 02/06/15 at 09:13pm, Fabien Bourigault wrote:
Hi, I'm a PackageKit alpm backend contributor and I found a strange behavior when removing a package in the same alpm_handle_t lifecycle. Here you have the simplified workflow :
alpm initialization new transaction install inkscape end transaction new transaction remove inkscape end transaction
When removing the package, backend does an alpm_db_get_pkg (localdb, name) to get the package and then call alpm_remove_pkg with this found package. alpm_remove_pkg returns an error with 6 as errno. I looked in alpm_remove_pkg code and there is 3 cases returning such error. The one failing is pkg coming from localdb.
I have no knowledge of libalpm internals but from the outside it looks like the package structure was copied ot the localdb in installation phase but the db field was not updated.
I hope this is a bug that could be solved.
Regards,
Fabien
Hi Fabien, Thanks for the bug report and for working on the PackageKit backend. Can you verify that the patch I sent fixes your issue? If you need to, you can download it from https://patchwork.archlinux.org/patch/2792/ apg