From 4d210bd46083032cf10a2084d4c6ee259a590214 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 22 Jun 2006 01:24:16 +0000 Subject: [PATCH] Make sure that PORT_LOGDIR is properly unset when it is unusable. Thanks to solar for reporting issues with logs landing in $PWD. svn path=/main/trunk/; revision=3586 --- pym/portage.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pym/portage.py b/pym/portage.py index f5d4cf1e7..0f6d3bb1c 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1251,7 +1251,8 @@ class config: writemsg(yellow("!!!")+" PORT_LOGDIR was defined, but set to nothing.\n", noiselevel=-1) writemsg(yellow("!!!")+" Disabling it. Please set it to a non null value.\n") - del self["PORT_LOGDIR"] + while "PORT_LOGDIR" in self: + del self["PORT_LOGDIR"] if self["PORTAGE_CACHEDIR"]: # XXX: Deprecated -- April 15 -- NJ @@ -2748,7 +2749,8 @@ def prepare_build_dirs(myroot, mysettings, cleanup): writemsg("!!! Permission issues with PORT_LOGDIR='%s'\n" % \ mysettings["PORT_LOGDIR"], noiselevel=-1) writemsg("!!! Disabling logging.\n", noiselevel=-1) - mysettings["PORT_LOGDIR"]="" + while "PORT_LOGDIR" in mysettings: + del mysettings["PORT_LOGDIR"] def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, fetchonly=0, cleanup=0, dbkey=None, use_cache=1, fetchall=0, tree=None, -- 2.26.2