Does RPM support >= for triggerpostun?
Issue
I've got a weird issue with RPM and triggerpostun script. In my spec file it contains:-
%triggerun -- sos < 1.0.2-0
...blah...
%triggerpostun -- sos >= 1.0.2-0
...blah...
Building the package for RHEL 5 and 6 on a RHEL 5 host does not generate any error or warning messages.
When I query the triggers of the package on a RHEL 5 host which has the following rpm version installed:-
# rpm -q rpm
rpm-4.4.2.3-34.el5.x86_64
I get the following results:-
triggerun scriptlet (using /bin/sh) -- sos < 1.0.2-0 **** which is expected
...blah...
triggerpostun scriptlet (using /bin/sh) -- sos < 1.0.2-0 *** NOT expected, what happened to >=????
....blah...
When I query the triggers of the package on a RHEL 6 host it correctly shows the triggers:-
triggerun scriptlet (using /bin/sh) -- sos < 1.0.2-0
triggerpostun scriptlet (using /bin/sh) -- sos >= 1.0.2-0
Does RHEL 5 RPM not recognize the >= for trigger scriptlets?
Environment
Red Hat Enterprise Linux 5.10
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.