<p>Case <code>%triggerin -- %{name} < 1.0-2.new</code>:</p>
<p>RPM triggers <code>%triggerin -- %{name} < 1.0-2.new</code>. It is according to the description in the documentation [1] (<em>The %triggerin script is also run when your package</em> (<code>baz-1.0-2.new</code>) <em>is installed or upgraded, should the target package</em> (<code>baz-1.0-1.old</code>) <em>be already installed.</em>)</p>
<p>Case <code>%triggerin -- %{name}</code>:</p>
<p>In this case more natural would be running the triggerin scriptlet only once. Note that if <code>baz-1-3.new </code> is the same as <code>baz-1-2.new</code> (the only difference is the release number), then after upgrading from <code>baz-1-2.new</code> to  <code>baz-1-3.new</code> the %triggerin is run three times.</p>
<p>I think that this should be improved to call %triggerin in all cases maximally once.</p>
<p>[1] Fedora documentation  (but it holds generally):<br>
<a href="https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch10s02.html" rel="nofollow">https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch10s02.html</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/issues/209?email_source=notifications&email_token=ADLPZU6N2SJH3N3UAC6MLNDQMG3Q7A5CNFSM4DJKBGRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD744OSQ#issuecomment-536463178">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU34VPVPNTY3SILFRJDQMG3Q7ANCNFSM4DJKBGRA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZU3RTEK5CDMNJSQEHJLQMG3Q7A5CNFSM4DJKBGRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD744OSQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/issues/209?email_source=notifications\u0026email_token=ADLPZU6N2SJH3N3UAC6MLNDQMG3Q7A5CNFSM4DJKBGRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD744OSQ#issuecomment-536463178",
"url": "https://github.com/rpm-software-management/rpm/issues/209?email_source=notifications\u0026email_token=ADLPZU6N2SJH3N3UAC6MLNDQMG3Q7A5CNFSM4DJKBGRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD744OSQ#issuecomment-536463178",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>