diff options
author | Jason Stubbs <jstubbs@gentoo.org> | 2005-09-29 16:32:57 +0000 |
---|---|---|
committer | Jason Stubbs <jstubbs@gentoo.org> | 2005-09-29 16:32:57 +0000 |
commit | 8161d98aad4917db1fd03aad7aca039a4b8aa277 (patch) | |
tree | 6f83e6ee1bd3390e674fb6c80e8fcb9a951104aa | |
parent | 0ffd5f078e0ac8ab317bd13d14e4c320f8315a78 (diff) | |
download | portage-8161d98aad4917db1fd03aad7aca039a4b8aa277.tar.gz portage-8161d98aad4917db1fd03aad7aca039a4b8aa277.tar.bz2 portage-8161d98aad4917db1fd03aad7aca039a4b8aa277.zip |
Fix incorrect Exception when checking LOGDIR permissions
svn path=/main/branches/2.0/; revision=2051
-rw-r--r-- | pym/portage.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |