On Wed, Aug 28, Olaf Hering wrote:
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.
The document is a generic one. I'm currently creating a wiki page which is openSUSE specific mit details, instructions and hints: https://en.opensuse.org/openSUSE:Packaging_UsrEtc Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany Managing Director: Felix Imendoerffer (HRB 247165, AG München) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org