On 11/15/06, John Rouillard <rouilj-yum@xxxxxxxxxxx> wrote:
My RPM's have a pre(install) scriptlet that verifies that they are being installed and not updated. If I install with rpm, I can parse the command line ofx the parent process of the scriptlet and verify that -i or --install was used rather than -U or --update.
Look at $1 being passed to the %pre. install erase upgrade reinstall %pre 1 - 2 2 %pre if [ $1 -eq 1 ]; then do your thing; else do what you feel; fi -D _______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxxxxx https://lists.dulug.duke.edu/mailman/listinfo/yum