Am Montag, 16. Juni 2003, 13:18:13 Uhr MET, schrieb Andrey Borzenkov:
> Is there generic way to check old version in postinstall during
> update? I need to do action either on new install or on update from
> "really old version".

Hmm, one thing is sure, you cannot call rpm in the %post script. A
better was would be to check for a specific file that was only present
in the "really old version", something like this

if [ -f /usr/bin/reallyoldbinary ]
then ...
fi
-- 
What difference does it make to the dead, the orphans and the
homeless, whether the mad destruction is wrought under the name of
totalitarianism or the holy name of liberty or democracy?
    Mahatma Gandhi (1869 - 1948), "Non-Violence in Peace and War"

Reply via email to