summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-03-23 08:22:58 +0000
committerZac Medico <zmedico@gentoo.org>2006-03-23 08:22:58 +0000
commit7e8b27c1d972f4eff89fd58c29d078c310b44e6b (patch)
treea0ddff2e17ba817680a21377b46c63d7999432be /bin/ebuild
parentWhen the post preinst shell tasks fail, write a message to stderr and return ... (diff)
downloadportage-multirepo-7e8b27c1d972f4eff89fd58c29d078c310b44e6b.tar.gz
portage-multirepo-7e8b27c1d972f4eff89fd58c29d078c310b44e6b.tar.bz2
portage-multirepo-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-xbin/ebuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ebuild b/bin/ebuild
index fafdbbcc..a62585a5 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()