From 95340b583d32ca440213e6e2bf41b5315497ccb6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 12 Aug 2009 00:19:32 +0000 Subject: Show a traceback when spawn() fails. svn path=/main/trunk/; revision=14005 --- pym/portage/process.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pym') 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) -- cgit v1.2.3-1-g7c22