summaryrefslogtreecommitdiffstats
path: root/pym/portage_util.py
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-10-30 07:23:42 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-10-30 07:23:42 +0000
commit83a88f299ec4fa89eb2cac14960cc89833cf9c12 (patch)
tree816ce03aeaae8383263679615c1522714e7ca528 /pym/portage_util.py
parent583f01a90ef7d5bd967972e19d4593c0e3e487ea (diff)
downloadportage-83a88f299ec4fa89eb2cac14960cc89833cf9c12.tar.gz
portage-83a88f299ec4fa89eb2cac14960cc89833cf9c12.tar.bz2
portage-83a88f299ec4fa89eb2cac14960cc89833cf9c12.zip
Add treetype instance member to dblink. Add treetype parameters tov2.0.53_rc7
dblink.__init__() and merge(). Adjust all calls to dblink(), merge() and doebuild() to specify what tree should be used for aux_get(). Patch created with the help of Zac Medico (zmedico). svn path=/main/branches/2.0/; revision=2203
Diffstat (limited to 'pym/portage_util.py')
-rw-r--r--pym/portage_util.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/pym/portage_util.py b/pym/portage_util.py
index 3584e5fdc..6a0c10155 100644
--- a/pym/portage_util.py
+++ b/pym/portage_util.py
@@ -455,5 +455,11 @@ def unique_array(array):
return mya
-
-
+def dump_traceback(msg):
+ import sys, traceback
+ writemsg("\n====================================\n", noiselevel=1)
+ writemsg("Warning: %s\n" % msg, noiselevel=1)
+ for line in traceback.format_list(traceback.extract_stack()[:-1]):
+ writemsg(line, noiselevel=1)
+ writemsg("Please file a bug for %s\n" % sys.argv[0], noiselevel=1)
+ writemsg("====================================\n\n", noiselevel=1)