On Sa, 2021-05-29 at 00:11 +0200, Dominique Leuenberger / DimStar wrote:
On Sat, 2021-05-29 at 00:09 +0200, Martin Wilck wrote:
On Sa, 2021-05-29 at 00:02 +0200, Dominique Leuenberger / DimStar
hi Martin,
sorry for the late reply on this topic;
The wiki actually has some hints about how to handle this case: https://en.opensuse.org/openSUSE:Packaging_UsrEtc#Moving_of_configuration_fi...
Hope that helps,
Thanks! I should have found that page :-/
Fortunately, it's pretty close to what I'd figured out, except that I moved away the old .rpmsave files in %post, not %pre. AFAICS %post is sufficient - no?
in %post you already don't know anymore if the .rpmsave was there prior to the update, or not. So you risk to re-enable old moved config files.
In my experiments (which just involved updating suse-module-tools alone), rpm created the (new) .rpmsave files after invoking %post. Is that dependent on the rpm version, or some properties of the transaction, or just some random ordering? Regards, Martin