Mailinglist Archive: opensuse-packaging (118 mails)

< Previous Next >
Re: [opensuse-packaging] Sricplet in spec
  • From: Eric Schirra <ecsos@xxxxxxxxxxxx>
  • Date: Sat, 13 Jun 2015 17:18:12 +0200
  • Message-id: <2308422.rJ0ti0sgUQ@client1>
Am Samstag, 13. Juni 2015, 16:22:14 schrieb Jan Engelhardt:
On Saturday 2015-06-13 12:59, Eric Schirra wrote:
So i insert something like:

%post
if [ "$1" = 2 ]; then

%{_bindir}/php %{my_path}/%{name}/console param

fi

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?

It can run later. It must only run sometime after upgrade the program
I want upgrade one database when the program self is updated.

Regards
Eric

--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups