summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 658ac64af..7a4e88bd8 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}