[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: creating links
- From: Jos Vos <jos xos nl>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: creating links
- Date: Fri, 6 Apr 2007 18:23:48 +0200
On Fri, Apr 06, 2007 at 10:03:26AM -0700, Joshua M. Miller wrote:
> What would be the best way to specify creation of symlinks after RPM
> installation in the SPEC file?
>
> I have tried during the %post portion and that fails with the following
> error:
>
> error: %post(libldap-2.3.34-centos3) scriptlet failed, exit status 1
You can add symlinks in %post (whether that's a good idea is another
story), but be sure that all commands in %post *always* succeed (i.e.
exit with return code 0), otherwise the scriptlet will fail.
So find the reason why the command exits with a non-zero return code.
B.t.w., if a command *really* may fail, maybe even with error messages,
you can always consider to use a construction like
command > /dev/null 2>&1 || :
making this statement always succeed.
--
-- Jos Vos <jos xos nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]