[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: RPM runs %post, yum does not ...
- From: Klaus Steden <klaus steden thomson net>
- To: Discussion list about Kickstart <kickstart-list redhat com>
- Subject: Re: RPM runs %post, yum does not ...
- Date: Fri, 4 Nov 2005 10:12:42 -0500
> > Call off the dogs.
> >
> > It seems that scriptlets run in a confusing order ...
> >
> > %pre (new package)
> > %post (new package)
> > %preun (old package)
> > %postun (old package)
> >
> > ... which meant that my stupid RPMs were stepping on each other.
> >
> > It's times like these that I miss vendor documentation.
>
> You need to apply $1 logic in your scriptlets.
>
> In %post, if $1 = 1, then create the symlink. If $1 -gt 1, only create
> the symlink if it doesn't exist (i.e. version changes). In %preun, if
> $1 = 1, remove your symlink. Something like that.
>
Yeah, that's what I ended up doing. Seems okay now with the $1 stubs ... but a
whole pile of my RPMs now need rebuilding and reinstalling. Bah.
Thanks for the tip, Brian
Klaus
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]