Adding env variable to allow rpm package to differentiate install from upgrade

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all:

I am trying to add an environment variable that lets a pre/post or
trigger scriptlet know if yum is invoking it with upgrade or install
intentions.

However I can't find the right place in the yum code to place it. I
was looking to place it as close to the shell invocation as I could,
but I can't find the code that actually forks the shell or calls the
scriptlets.

I have found the code/data structure that allows me to determine if
the package is being processed in upgrade or install mode
(TransactionMember().output_state) , but I am not able to follow the
execution path and find the code that invokes the scriplet for the
transaction member.

Can somebody throw me a bone and a pointer to the python file where
the scriptlets are run. I am running python-2.3 on a centos
environment with yum 2.4.3.

I plan on releasing my patch back to the community if that helps
sway somebody into helping me.

aTdHvAaNnKcSe

-- 
				-- rouilj

John Rouillard
System Administrator
Renesys Corporation
603-643-9300 x 111
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux