debug-print: don't stat $T during depend phase v2.1.9.23
authorZac Medico <zmedico@gentoo.org>
Wed, 27 Oct 2010 19:32:18 +0000 (12:32 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 27 Oct 2010 19:34:34 +0000 (12:34 -0700)
bin/ebuild.sh

index 4b831ef3223aac1ba3e6b774e9776e7e7c15e5f4..c6bb57e6ee62fb99ef03a70826dd7694fc686c85 100755 (executable)
@@ -1267,7 +1267,7 @@ dyn_help() {
 debug-print() {
        # if $T isn't defined, we're in dep calculation mode and
        # shouldn't do anything
-       [[ ! -d ${T} || ${#} -eq 0 ]] && return 0
+       [[ $EBUILD_PHASE = depend || ! -d ${T} || ${#} -eq 0 ]] && return 0
 
        if [[ ${ECLASS_DEBUG_OUTPUT} == on ]]; then
                printf 'debug: %s\n' "${@}" >&2