Gentoo Archives: gentoo-portage-dev

From: "Petteri Räty" <betelgeuse@g.o>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] making dodoc and dohtml die when they fail and stricter is on
Date: Sun, 25 Dec 2005 22:54:50
Message-Id: 43AF230C.5080904@gentoo.org
1 Currently there are quite a few ebuilds in the tree that execute dodoc
2 or dohtml for files that do not exist. I think it would be nice to have
3 ebuilds die if this is the case. To not break current ebuilds this would
4 only happen with FEATURES="stricter". This is what I currently do in my
5 bashrc. Obviously when integreted to portage one can use helper
6 functions like hasq which are not available in bashrc.
7
8
9 if [[ "${FEATURES/stricter}" != "${FEATURES}" ]]; then
10
11 _makefail() {
12 bin="/usr/lib/portage/bin/${1}"
13 shift 1
14 "${bin}" "${@}" || die "${bin} ${@} failed"
15 }
16
17 dodoc() { _makefail ${FUNCNAME} "${@}"; }
18 dohtml() { _makefail ${FUNCNAME} "${@}"; }
19
20 fi
21
22 Regards,
23 Petteri

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies