18 Jun
2018
18 Jun
'18
10:57
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? Thanks, Adrian
[1] https://github.com/GoogleCloudPlatform/compute-image-packages/blob/master/sp... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org