Hi,
i have problems with the ordering of snippets in rpm -
namely that the postun part of the old RPM package is run after post of the new package
(see
http://fedoraproject.org/wiki/Packag...iptletSnippets).
I need to provide an RPM that stream edits files which are not a part of any RPM.
When RPM uninstalled completely the initial state of the system must be restored
(and of course when updating the RPM package the files must be modified correctly).
This is clarified by the following example:
run postun_problem.sh as root - the final line of postun_problem.out is incorrectly "Release0".
The postun_problem.out looks currently like:
Code:
Preparing... ##################################################
postun_problem ##################################################
Applying Release 1
Release1
Preparing... ##################################################
postun_problem ##################################################
Applying Release 2
Package uninstalled: Going back to Release 0
Release0
How to modify postun_problem.spec to achieve the output of "Release2" when the package
is updated and "Release0" if the package is uninstalled?
Best regards,
Marcin