-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reinstalling a packge warns "cannot find THE_PACKAGE in uninst-start" #1653
Comments
ppisar
changed the title
Reinstalling a packge warns "cannot find bash in uninst-start"
Reinstalling a packge warns "cannot find THE_PACKAGE in uninst-start"
Apr 17, 2024
@kontura, could you look at it? |
kontura
added a commit
to kontura/libdnf
that referenced
this issue
May 3, 2024
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. Fixes: rpm-software-management#1653
kontura
added a commit
to kontura/libdnf
that referenced
this issue
May 3, 2024
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. This is for the context part of libdnf (microdnf, packagekit, ...) Fixes: rpm-software-management#1653
jan-kolarik
pushed a commit
that referenced
this issue
May 15, 2024
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. This is for the context part of libdnf (microdnf, packagekit, ...) Fixes: #1653
ppisar
pushed a commit
to ppisar/libdnf
that referenced
this issue
May 16, 2024
Upstream commit: bc37168 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. This is for the context part of libdnf (microdnf, packagekit, ...) Fixes: rpm-software-management#1653 Resolves: https://issues.redhat.com/browse/RHEL-1454
kontura
added a commit
that referenced
this issue
May 20, 2024
Upstream commit: bc37168 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. This is for the context part of libdnf (microdnf, packagekit, ...) Fixes: #1653 Resolves: https://issues.redhat.com/browse/RHEL-1454
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using microdnf (compiled from the latest Fedora 40 sources) with libdnf-0.73.1-20240417004923.1.g85432dfd.fc41.x86_64 produces 3 "cannot find" libdnf warnings:
This is a regression triggered by 85432df commit.
The text was updated successfully, but these errors were encountered: