On Fri, Jun 16, Robert Schweikert wrote:
Hi,
How do I skip something during the install test of a package build in the build service?
The package needs contain a %post in this section during regular install a script gets executed that modifies files in the root file system when installed on a running system. During package build these files are not there and thus %post fails during the install test.
I've tried
%if ! 0%{?opensuse_bs} %post oslogin /sbin/ldconfig %{_bindir}/myscript %endif
but that didn't do the trick as "myscript" still gets executed and then the build fails. So "myscript" should not run during install test in OBS but should run when the package is installed on a running system.
test -x %{_bindir}/myscript && %{_bindir}/myscript Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & CaaSP SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org