[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How to make RPM installation fail if post script fails ?
- From: Federico Lucifredi <flucifredi acm org>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: How to make RPM installation fail if post script fails ?
- Date: Mon, 02 Oct 2006 10:22:28 -0400
Not to sound unhelpful, but you should also consider whether you
*really* *really* need to do this. At Ximian, we have a rule that a post
script can *never* fail, and we arrange things accordingly. Granted, it
is yet another constraint to live with, but so far it has served us
well.
best -f
On Mon, 2006-10-02 at 09:20 -0400, James Olin Oden wrote:
> Hi all,
>
>
>
> I don't know if this is possible, but my RPM consists of
> several files that are installed (declared in %files of my
> rpm.spec file), and also several steps to be done in post
> section, after these files are copied to disk. It is necessary
> for this rpm that it is not considered as installed if one of
> the steps I'm doing in the post section of the spec file is
> failing, so I've returned by exiting with non-zero value
> (hoping this would stop the installation procedure), but this
> does not help. Strangely enough, when un-installing (with rpm
> –e command), if some error occurs in my preun script, then the
> rpm is not uninstalled….
>
>
>
> Is there some directive or special value to return for making
> the installation fails after installing the rpm files ? Or am
> I considering this the wrong way ?
>
>
>
> See my article:
>
> http://www.linuxjournal.com/article/7034
>
> Your looking for the autorollback feature of rpm, or a flavor of it
> that does not exist which is a dead stop on failure. Dead stop is
> easy but where I work we never found dead stop to be nearly as
> usefull as try to automatically roll things back.
>
> Cheers...james
>
>
>
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list redhat com
> https://www.redhat.com/mailman/listinfo/rpm-list
--
_________________________________________
-- "'Problem' is a bleak word for challenge" - Richard Fish
(Federico L. Lucifredi) - http://www.lucifredi.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]