summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-12-23 02:46:03 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-12-23 02:46:03 +0000
commit853882e3805e31de0e732b5467cd6d8a76bb2a86 (patch)
tree65c8df6bacdcd7e7786928ea74a2497991b75457 /pym/portage.py
parent57271bf98ed6d7c318a4e78924e9b4b654a566a4 (diff)
downloadportage-853882e3805e31de0e732b5467cd6d8a76bb2a86.tar.gz
portage-853882e3805e31de0e732b5467cd6d8a76bb2a86.tar.bz2
portage-853882e3805e31de0e732b5467cd6d8a76bb2a86.zip
Generalize portage_util.dump_traceback() and make use of it if importing
a cache module fails. svn path=/main/trunk/; revision=2439
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 536795ecc..851dab39c 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1284,7 +1284,7 @@ class config:
try:
mod = load_mod(best_mod)
except:
- writemsg(red("!!! Failed to import module '%s'\n") % best_mod)
+ dump_traceback(red("Error: Failed to import module '%s'") % best_mod, noiselevel=0)
sys.exit(1)
return mod
@@ -2426,7 +2426,7 @@ def doebuild(myebuild,mydo,myroot,mysettings,debug=0,listonly=0,fetchonly=0,clea
global db, actionmap_deps
if not tree:
- dump_traceback("tree not specified to doebuild")
+ dump_traceback("Warning: tree not specified to doebuild")
tree = "porttree"
ebuild_path = os.path.abspath(myebuild)