![](https://seccdn.libravatar.org/avatar/bff0c215e01f23fcee6fe49e65fae458.jpg?s=120&d=mm&r=g)
On Fri, Jun 16, 2017 at 10:06:53AM -0400, 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.
I have done this years ago but forgot the package where I needed to do this an dobviousy forgot how to do it as well.
So what are you really trying to achieve? This is usually somethign that will break transactional updates and friends. Ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org