[Rpm-maint] [rpm-software-management/rpm] `%triggerin -- %{name} < %{version}-%{release}` is always triggered on upgrade (#209)

pavlinamv notifications at github.com
Mon Sep 30 08:40:47 UTC 2019

Case `%triggerin -- %{name} < 1.0-2.new`:

RPM triggers `%triggerin -- %{name} < 1.0-2.new`. It is according to the description in the documentation [1] (_The %triggerin script is also run when your package_ (`baz-1.0-2.new`) _is installed or upgraded, should the target package_ (`baz-1.0-1.old`) _be already installed._)

Case `%triggerin -- %{name}`:

In this case more natural would be running the triggerin scriptlet only once. Note that if `baz-1-3.new
` is the same as `baz-1-2.new` (the only difference is the release number), then after upgrading from `baz-1-2.new` to  `baz-1-3.new` the %triggerin is run three times.

I think that this should be improved to call %triggerin in all cases maximally once.

[1] Fedora documentation  (but it holds generally):

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190930/d9a7e270/attachment.html>

More information about the Rpm-maint mailing list