On mardi, 12 juin 2018 17.33:15 h CEST Axel Braun wrote:
Hi,
following my mail request from last week on 'Prevent Postgres 10 from installation', it points that the solution to block postgres10 from installation is not ideal, as it breaks openQA testing
So, the idea is to use update-alternatives in the %post section: update-alternatives --set postgresql /usr/lib/postgresql96
This results in an error message when the build is tested: .... [ 70s] ... testing GConf scriptlet presence [ 70s] ... running 50-check-installtest [ 70s] ... testing for pre/postinstall scripts that are not idempotent [ 71s] update-alternatives: error: no alternatives for postgresql ..... This error occurs even with Requires: postgresql10-server Requires: postgresql96-server means explicitly setting the requirement for both versions
Any hints how to get this running? Thanks Axel
rpm -qf /usr/share/postgresql/install-alternatives postgresql-10-20.13.noarch You need this one to initiate the alternatives. -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch Bareos Partner, openSUSE Member, fsfe supporter GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org