Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r12126 - main/trunk/bin
Date: Mon, 01 Dec 2008 18:59:52
Message-Id: E1L7Dzp-0003Q2-Gh@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-12-01 18:59:49 +0000 (Mon, 01 Dec 2008)
3 New Revision: 12126
4
5 Modified:
6 main/trunk/bin/ebuild.sh
7 Log:
8 Fix inconsistencies between the "clean" and "cleanrm" phases.
9
10
11 Modified: main/trunk/bin/ebuild.sh
12 ===================================================================
13 --- main/trunk/bin/ebuild.sh 2008-12-01 06:51:28 UTC (rev 12125)
14 +++ main/trunk/bin/ebuild.sh 2008-12-01 18:59:49 UTC (rev 12126)
15 @@ -1797,7 +1797,7 @@
16 unset BIN_PATH BIN BODY FUNC_SRC
17 fi
18
19 -if ! hasq ${EBUILD_PHASE} clean depend && \
20 +if ! hasq "$EBUILD_PHASE" clean cleanrm depend && \
21 [ -f "${T}"/environment ] ; then
22 # The environment may have been extracted from environment.bz2 or
23 # may have come from another version of ebuild.sh or something.
24 @@ -1843,7 +1843,7 @@
25 source_all_bashrcs
26 fi
27
28 -if ! hasq ${EBUILD_PHASE} clean && \
29 +if ! hasq "$EBUILD_PHASE" clean cleanrm && \
30 (
31 hasq ${EBUILD_PHASE} depend || \
32 [ ! -f "${T}"/environment ] || \
33 @@ -1889,7 +1889,7 @@
34 [[ -n $EAPI ]] || EAPI=0
35
36 # enable bashrc support for the clean phase
37 -[[ ${EBUILD_PHASE} == clean ]] && source_all_bashrcs
38 +hasq "$EBUILD_PHASE" clean cleanrm && source_all_bashrcs
39
40 # unset USE_EXPAND variables that contain only the special "*" token
41 for x in ${USE_EXPAND} ; do