[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: init scripts macros for openssh alternative



is there a command to put in the spec file to instruct it to not execute
triggers from other packages being upgraded.

On Fri, 7 Mar 2003, Tristan Van Berkom wrote:

> Maximum rpm is definitly outdated
> (the API for rpmlib section is completly
> outdated). but I believe that all the
> specfile behavior must still be valid.
>
> 	-Tristan
>
> NOTE:
> of course you can use this method to
> stop this from happening in the future
> but if the "already-installed-package"
> doesn't check the $1 arg; it will still
> behave wierdly.
>
> %postun will run after %post in every case
> (at least in rpm-4.1-x AFAIK)
>
> "Kruk, Mikhail" wrote:
> >
> > > Hmmm; do you have access to the spec file
> > > that was used for the previous package ?
> >
> > Yes. If the previous package is broken there is no way to ensure clean
> > upgrade, is there?
> >
> > > what I do is:
> > >
> > > %postun
> > > if [ $1 = 0 ]; then
> > >       stop services and maybe do some cleanup
> > > fi
> > >
> > >
> > > iirc the arg to postun represents how many
> > > versions are still present of `package'
> > > after `this' erasure (but I'm really not sure;
> > > it's been working for me though).
> >
> > Ah, yes, you are right. That's what the official OpenSSH-servers rpm is
> > doing.
> >
> > Now is this documented anywere? Is Maximum RPM outdated?





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []