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 |