On Mon, Jun 18, John Paul Adrian Glaubitz wrote:
Hi!
What is the easiest way to determine during the %post scriptlet in a spec file whether the package is currently being upgraded instead of being installed?
I checked the documentation but couldn't find anything relevant. I also tried testing whether the first argument to rpm is "2", i.e. "$1 -eq 2" similar to [1] but that seems to work on Fedora only.
Anyone can give me a quick hint?
This works: http://meinit.nl/rpm-spec-prepostpreunpostun-argument-values Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & CaaSP SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org