libdnf icon indicating copy to clipboard operation
libdnf copied to clipboard

Since we use rpmtsAddReinstallElement rpm also uninstalls the package

Open kontura opened this issue 9 months ago • 0 comments

It calls callbacks for RPMCALLBACK_INST_START and RPMCALLBACK_INST_PROGRESS just like before when the reinstall was done through regural install (rpmtsAddInstallElement) but in addition it also calls RPMCALLBACK_UNINST_START and RPMCALLBACK_UNINST_PROGRESS. To ensure they find the DnfPackage add it to remove_helper array.

Unfortunaly this means that the reinstall action is reported twice to the clients (one install and one uninstall). We could try to hide one of the them but I think a better solution is to report what is actually happening and report one install and one uninstall.

Fixes: https://github.com/rpm-software-management/libdnf/issues/1653

This is for the context part of libdnf (microdnf, packagekit, ...)

kontura avatar May 03 '24 07:05 kontura