aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-08-12 00:19:32 +0000
committerZac Medico <zmedico@gentoo.org>2009-08-12 00:19:32 +0000
commit95340b583d32ca440213e6e2bf41b5315497ccb6 (patch)
tree0288efc8320bb886e1c338d8021412d1797350a3 /pym/portage/process.py
parentUpdate imports to import portage.os (with unicode wrappers), and use (diff)
downloadportage-95340b583d32ca440213e6e2bf41b5315497ccb6.tar.gz
portage-95340b583d32ca440213e6e2bf41b5315497ccb6.tar.bz2
portage-95340b583d32ca440213e6e2bf41b5315497ccb6.zip
Show a traceback when spawn() fails.
svn path=/main/trunk/; revision=14005
Diffstat (limited to 'pym/portage/process.py')
-rw-r--r--pym/portage/process.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/process.py b/pym/portage/process.py
index 051a59f61..5dcf481e2 100644
--- a/pym/portage/process.py
+++ b/pym/portage/process.py
@@ -8,6 +8,7 @@ import os
import atexit
import signal
import sys
+import traceback
import portage
portage.proxy.lazyimport.lazyimport(globals(),
@@ -244,6 +245,7 @@ def spawn(mycommand, env={}, opt_name=None, fd_pipes=None, returnpid=False,
# propogate out of this function and cause exiting
# with anything other than os._exit()
sys.stderr.write("%s:\n %s\n" % (e, " ".join(mycommand)))
+ traceback.print_exc()
sys.stderr.flush()
os._exit(1)