From: Jason Stubbs Date: Thu, 29 Sep 2005 16:32:57 +0000 (-0000) Subject: Fix incorrect Exception when checking LOGDIR permissions X-Git-Tag: v2.0.53_rc4_2111~44 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8161d98aad4917db1fd03aad7aca039a4b8aa277;p=portage.git Fix incorrect Exception when checking LOGDIR permissions svn path=/main/branches/2.0/; revision=2051 --- 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