within rpm installation of package x i try in %pre to find out with rpm -q if package y is already installed. Seems that in rpm-3.x rpmdb is locked from the start, same script works with rpm-4.x its not a dependency/conflict etc., all i want is to echo some information if package y is also installed. Do i have some alternatives?
Dont do that then ;-) seriously ... explain what the real usecase is.. so we can give you some ideas..
i think i found a solution. reason for my problem is that during upgrade the %postun of old package runs after %post of new package. this removes some changes made by %post of new package. uninstall --> install is working because order of scriptlets is like expected. is the %posttrans section useable to make sure that last action is triggered by new package? %posttrans is new to me, i found it in a fedora-wiki... otherwise i have to fix the few affected machines by hand and in new rpm i can consider special situation like described here: http://en.opensuse.org/Packaging/Guidelines#Running_scriptlets_only_in_certa... this should fix my problem also at further packageupgrades. i know that to much scripting in rpms should be avoided, but its just for internal puposes and sometimes special situations require special solutions... Thanks, Andre -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org