
Mon, 7 Mar 2022 07:51:16 +0000 Martin Wilck <martin.wilck@suse.com>:
This pattern can not be detected by build-compare. Do you mean I should drop the "-%{RELEASE}" part?
No, such pattern has to be at the end of the line (see trim_release_old/new in build-compare/functions.sh). But for the purpose of .rpmsave handling no variables are required.
Just move the files back and forth unconditionally, like it is done already elsewhere. Forgive me for being dense, I fail to parse this sentence. I can't just blindly move $x.rpmsave to $x; I might restore an ancient, long- forgotten configuration just because of a left-over .rpmsave file.
Just look at i3lock,kbd,libvirt,lightdm,openssh,...spec how to do it in %pre/%posttrans. Are these common patterns really not documented in our wiki? After all a few thousand %config entries have to be handled properly at some point... Olaf