* [gentoo-portage-dev] [PATCH] Typo in PORT_LOGDIR validity check
@ 2005-09-27 4:57 Jason Stubbs
0 siblings, 0 replies; only message in thread
From: Jason Stubbs @ 2005-09-27 4:57 UTC (permalink / raw
To: gentoo-portage-dev
[-- Attachment #1: Type: text/plain, Size: 77 bytes --]
Changes ValueError into OSError so that the except: block can do it's thing.
[-- Attachment #2: disable-logdir-when-inaccessible-typo.patch --]
[-- Type: text/x-diff, Size: 579 bytes --]
diff -u -r1.524.2.76 portage.py
--- pym/portage.py 29 May 2005 12:40:08 -0000 1.524.2.76
+++ pym/portage.py 11 Aug 2005 14:26:18 -0000
@@ -2595,7 +2597,7 @@
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-27 4:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-27 4:57 [gentoo-portage-dev] [PATCH] Typo in PORT_LOGDIR validity check Jason Stubbs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox