From 8161d98aad4917db1fd03aad7aca039a4b8aa277 Mon Sep 17 00:00:00 2001 From: Jason Stubbs Date: Thu, 29 Sep 2005 16:32:57 +0000 Subject: [PATCH] Fix incorrect Exception when checking LOGDIR permissions svn path=/main/branches/2.0/; revision=2051 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage.py b/pym/portage.py index aa6b89517..737a8e3c5 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2604,7 +2604,7 @@ def doebuild(myebuild,mydo,myroot,mysettings,debug=0,listonly=0,fetchonly=0,clea mysettings["LOG_PF"]=mysettings["PF"] mysettings["LOG_COUNTER"]=str(db[myroot]["vartree"].dbapi.get_counter_tick_core("/")) logfile="%s/%s-%s.log" % (mysettings["PORT_LOGDIR"],mysettings["LOG_COUNTER"],mysettings["LOG_PF"]) - except ValueError, e: + except OSError, e: mysettings["PORT_LOGDIR"]="" print "!!! Unable to chown/chmod PORT_LOGDIR. Disabling logging." print "!!!",e -- 2.26.2