On Thu, Nov 01, 2007 at 04:30:21AM -0600, Bart Whiteley wrote:
> Autobuild fails my package with the following error:
> ... testing for pre/postinstall scripts that break patchrpms
> postinstall script of <package>.rpm failed
>
> Can someone tell me what this might mean?
> That doesn't mean that the %post fails during a normal installation, right?
> But instead, some inspection of the script determined that it's not
> compatible with patchrpms?
>
> Any pointers on tracking down the problem?
The patchrpm check runs the scripts with the '-e' shell option
to make them abort when a command fails. This is done to catch
syntax errors in the scriptlets.
Thus, commands that might fail need an extra " || true".
Also, constructs like
foo && bar
are bad (the scripts aborts when foo fails), use
if foo ; then bar ; fi
instead.
Cheers,
Michael.
--
Michael Schroeder [EMAIL PROTECTED]
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]