@pmatilai commented on this pull request.


> @@ -469,6 +469,17 @@ static rpmpsm rpmpsmNew(rpmts ts, rpmte te, pkgGoal goal)
            psm->scriptArg = npkgs_installed + 1;
            psm->countCorrection = 0;
            break;
+       case PKG_PREUNTRANS:
+           if (rpmteDependsOn(psm->te))

isUpdate() handles the case where a package updates another, a condition which 
we need to find out with some difficulty. The erasure case is the reverse: this 
package was updated by something else, and for that we can just look at the 
dependent element directly. So no, isUpdate() wouldn't work for this as-is.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2177#discussion_r976061698
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/2177/review/[email protected]>
_______________________________________________
Rpm-maint mailing list
[email protected]
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to