Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH 3/4] Ban prepalldocs in ebuild scope
Date: Sat, 15 Sep 2018 11:49:21
Message-Id: 20180915114854.30550-4-mgorny@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH 0/4] Unused prepall* removal by "Michał Górny"
1 ---
2 bin/ebuild-helpers/prepalldocs | 19 ++-----------------
3 1 file changed, 2 insertions(+), 17 deletions(-)
4
5 diff --git a/bin/ebuild-helpers/prepalldocs b/bin/ebuild-helpers/prepalldocs
6 index 6cdceb318..e23a6d410 100755
7 --- a/bin/ebuild-helpers/prepalldocs
8 +++ b/bin/ebuild-helpers/prepalldocs
9 @@ -4,20 +4,5 @@
10
11 source "${PORTAGE_BIN_PATH}"/isolated-functions.sh || exit 1
12
13 -if ___eapi_has_docompress; then
14 - die "'${0##*/}' has been banned for EAPI '$EAPI'"
15 - exit 1
16 -fi
17 -
18 -if [[ -n $1 ]] ; then
19 - __vecho "${0##*/}: invalid usage; takes no arguments" 1>&2
20 -fi
21 -
22 -if ! ___eapi_has_prefix_variables; then
23 - ED=${D}
24 -fi
25 -
26 -[[ -d ${ED%/}/usr/share/doc ]] || exit 0
27 -
28 -ecompressdir --ignore /usr/share/doc/${PF}/html
29 -ecompressdir --queue /usr/share/doc
30 +die "'${0##*/}' is not allowed in ebuild scope"
31 +exit 1
32 --
33 2.19.0