summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-12 03:17:13 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-12 03:17:13 +0000
commitb10afa45d5cf97d47fc2e7bf7c7939996b83cb94 (patch)
tree9473dd155b73382fcb8451ea5a0926324251e1cc /bin
parent2fbc075ff110ef15a9a41dac321f330887e725ad (diff)
downloadportage-b10afa45d5cf97d47fc2e7bf7c7939996b83cb94.tar.gz
portage-b10afa45d5cf97d47fc2e7bf7c7939996b83cb94.tar.bz2
portage-b10afa45d5cf97d47fc2e7bf7c7939996b83cb94.zip
For bug #147512, don't print a cryptic error message when an EnvironmentError occurs. Also, allow the user to get a traceback via --debug.
svn path=/main/trunk/; revision=5580
Diffstat (limited to 'bin')
-rwxr-xr-xbin/emerge2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/emerge b/bin/emerge
index f65176b1d..06b75c84f 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -4964,6 +4964,8 @@ def emerge_main():
# together with EMERGE_DEFAULT_OPTS (which may vary depending on the
# the value of --config-root).
myaction, myopts, myfiles = parse_opts(sys.argv[1:], silent=True)
+ if "--debug" in myopts:
+ os.environ["PORTAGE_DEBUG"] = "1"
if "--config-root" in myopts:
os.environ["PORTAGE_CONFIGROOT"] = myopts["--config-root"]