Moving this to gentoo-dev then.

-------- Original Message --------
Subject: Re: [gentoo-portage-dev] making dodoc and dohtml die when they
fail and stricter is on
Date: Sun, 25 Dec 2005 15:14:46 -0800
From: Brian Harring <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
References: <[EMAIL PROTECTED]>

On Mon, Dec 26, 2005 at 12:54:04AM +0200, Petteri Räty wrote:
> Currently there are quite a few ebuilds in the tree that execute dodoc
> or dohtml for files that do not exist. I think it would be nice to have
> ebuilds die if this is the case. To not break current ebuilds this would
> only happen with FEATURES="stricter". This is what I currently do in my
> bashrc. Obviously when integreted to portage one can use helper
> functions like hasq which are not available in bashrc.
> 
> 
> if [[ "${FEATURES/stricter}" != "${FEATURES}" ]]; then
> 
> _makefail() {
>       bin="/usr/lib/portage/bin/${1}"
>       shift 1
>       "${bin}" "[EMAIL PROTECTED]" || die "${bin} [EMAIL PROTECTED] failed"
> }
> 
> dodoc() {     _makefail ${FUNCNAME} "[EMAIL PROTECTED]"; }
> dohtml() {    _makefail ${FUNCNAME} "[EMAIL PROTECTED]"; }
Seems like more of a -dev discussion imo, since they're the ones
affected by it (for us it's just an api change).
~harring


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to