[Rpm-maint] [rpm-software-management/rpm] Add support for %preuntrans and %postuntrans scriptlets (PR #2177)
Panu Matilainen
notifications at github.com
Wed Sep 21 05:54:53 UTC 2022
@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/1114793596 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220920/d57db66e/attachment.html>
More information about the Rpm-maint
mailing list