diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-03-23 08:22:58 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-03-23 08:22:58 +0000 |
commit | 7e8b27c1d972f4eff89fd58c29d078c310b44e6b (patch) | |
tree | a0ddff2e17ba817680a21377b46c63d7999432be /bin/ebuild | |
parent | f2468b530d094199b5e91d0856e99f6caf20c5e2 (diff) | |
download | portage-7e8b27c1d972f4eff89fd58c29d078c310b44e6b.tar.gz portage-7e8b27c1d972f4eff89fd58c29d078c310b44e6b.tar.bz2 portage-7e8b27c1d972f4eff89fd58c29d078c310b44e6b.zip |
Add a portage_debug module and python-trace feature for --debug mode.
svn path=/main/trunk/; revision=2979
Diffstat (limited to 'bin/ebuild')
-rwxr-xr-x | bin/ebuild | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ebuild b/bin/ebuild index fafdbbccc..a62585a5e 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -25,6 +25,11 @@ sys.path = ["/usr/lib/portage/pym"]+sys.path import portage, portage_util, portage_const +# do this _after_ 'import portage' to prevent unnecessary tracing +if debug and "python-trace" in portage.features: + import portage_debug + portage_debug.set_trace(True) + if portage.settings["NOCOLOR"] in ("yes","true") or not sys.stdout.isatty(): import output output.nocolor() |