28 Aug
2019
28 Aug
'19
09:34
On Wed, Aug 28, Thorsten Kukuk wrote:
%pre test -f /etc/${i}.rpmsave && mv -v /etc/${i}.rpmsave /etc/${i}.rpmsave.old ||: %posttrans # Migration to /usr/etc. test -f /etc/${i}.rpmsave && mv -v /etc/${i}.rpmsave /etc/${i}
This does not really depend on the new /usr/etc, packaging empty files was always wrong. But anyway, this approach is much simpler. And it does not depend on any %suse_version, unlike such proposed rpm helper macros. I will add this to the few pkgs I changed already, to have a proper upgrade path. I think it was not mentioned in 'atomic-updates_and_etc' (maybe I just missed it), please add it there as well. Olaf