I have a little requirement where I need to execute two triggers at the same time (on same package) but unfortunately RPM spec file executing only one trigger (whichever comes first) at a time.
Can anybody tell me how to execute the following two triggers..?
%triggerpostun -- odc#SHRTVER_NODOT#
%triggerpostun -- odc1010 <= 10.10.01.00
Here, SHRTVER_NODOT --> 1010
1st one will execute for all versions (it has to, Ex: 900,910,1000,1010 ...)
2nd one has to execute only when particular version found (Only 10.10.01.00)
I tried by switching these two triggers inside spec file and it is working fine (code wise!) but only one trigger at a time (whichever comes first).
Can anybody tell me how to make spec file to execute these two triggers.
Thanks for your help!!
EDIT::
Thank you, but this article refers different types of triggers and way of execution inside spec file. I have several other triggers in my spec file but unfortunately none of them makes this type of behavior.
%triggerin -- odc < 10.10.01.00
%triggerpostun -- odc
Like this also I have two more triggers but these are perfectly executing whenever the required version package found.