diff options
author | 2009-11-07 01:11:09 +0000 | |
---|---|---|
committer | 2009-11-07 01:11:09 +0000 | |
commit | 0310d22a27aa2084c6eb3fa372bd50825d1a0998 (patch) | |
tree | dd211347c63c5fcc4762d820fcaa6ccf577981a4 | |
parent | Bug #291142 - Fix some cases when a 'missed update' message might not be (diff) | |
download | portage-multirepo-0310d22a27aa2084c6eb3fa372bd50825d1a0998.tar.gz portage-multirepo-0310d22a27aa2084c6eb3fa372bd50825d1a0998.tar.bz2 portage-multirepo-0310d22a27aa2084c6eb3fa372bd50825d1a0998.zip |
For --debug mode, enable bash tracing when sourcing the ebuild. (trunk r14781)
svn path=/main/branches/2.1.7/; revision=14794
-rwxr-xr-x | bin/ebuild.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 658ac64a..7a4e88bd 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1829,7 +1829,14 @@ if ! hasq "$EBUILD_PHASE" clean cleanrm ; then # eclasses, they need to be unset before this process of # interaction begins. unset DEPEND RDEPEND PDEPEND IUSE - source "${EBUILD}" || die "error sourcing ebuild" + + if [[ $PORTAGE_DEBUG != 1 ]] || [[ ${-/x/} != $- ]] ; then + source "$EBUILD" || die "error sourcing ebuild" + else + set -x + source "$EBUILD" || die "error sourcing ebuild" + set +x + fi if [[ "${EBUILD_PHASE}" != "depend" ]] ; then RESTRICT=${PORTAGE_RESTRICT} |