Mailinglist Archive: opensuse-packaging (118 mails)

< Previous Next >
Re: [opensuse-packaging] Sricplet in spec

On Saturday 2015-06-13 12:59, Eric Schirra wrote:
So i insert something like:

if [ "$1" = 2 ]; then
%{_bindir}/php %{my_path}/%{name}/console param

I have try [ "$1" -gt 1 ] too without right result.

1 is install, 2 is upgrade.

Obs will run this at build.

Yes. You have to cope with failure in %post.

Can i prevent this from running at build?

Don't run the command at all? What does it do, anyway? Why do you need
it in %post? Why can it not be run at a later time?
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups