Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r13390 - main/trunk/bin
Date: Fri, 24 Apr 2009 02:29:50
Message-Id: E1LxBAi-0001yO-LW@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-04-24 02:29:44 +0000 (Fri, 24 Apr 2009)
3 New Revision: 13390
4
5 Modified:
6 main/trunk/bin/ebuild.sh
7 main/trunk/bin/isolated-functions.sh
8 Log:
9 Add dummy dosed and dohard functions for EAPI 3, so that a trace can be
10 displayed (not possible with the helper binaries).
11
12
13 Modified: main/trunk/bin/ebuild.sh
14 ===================================================================
15 --- main/trunk/bin/ebuild.sh 2009-04-24 02:18:34 UTC (rev 13389)
16 +++ main/trunk/bin/ebuild.sh 2009-04-24 02:29:44 UTC (rev 13390)
17 @@ -1444,6 +1444,14 @@
18 eval "$x() { _eapi0_$x \"\$@\" ; }"
19 done
20
21 + if ! hasq $eapi 0 1 2 ; then
22 + for x in dosed dohard ; do
23 + eval "$x() {
24 + die \"$x has been banned for EAPI '$eapi'\"
25 + }"
26 + done
27 + fi
28 +
29 case $eapi in
30
31 0|1)
32
33 Modified: main/trunk/bin/isolated-functions.sh
34 ===================================================================
35 --- main/trunk/bin/isolated-functions.sh 2009-04-24 02:18:34 UTC (rev 13389)
36 +++ main/trunk/bin/isolated-functions.sh 2009-04-24 02:29:44 UTC (rev 13390)
37 @@ -498,7 +498,8 @@
38 done
39 unset x
40
41 - unset -f dump_trace die diefunc quiet_mode vecho elog_base eqawarn elog \
42 + unset -f die diefunc dosed dohard dump_trace \
43 + quiet_mode vecho elog_base eqawarn elog \
44 esyslog einfo einfon ewarn eerror ebegin _eend eend KV_major \
45 KV_minor KV_micro KV_to_int get_KV unset_colors set_colors has \
46 hasg hasgq hasv hasq qa_source qa_call \