On Wed, Dec 21, 2005 at 10:57:23PM -0800, Brian Harring wrote:
> On Wed, Dec 21, 2005 at 01:50:20PM +0100, Grobian wrote:
> > Do you want me to merge these packages? [Yes/No] y
> > >>> emerge (1 of 70) sys-devel/patch-2.5.9-r1 to /
> > !!! Unable to create PORT_LOGDIR
> > !!!
> > Traceback (most recent call last):
> >   File "/ufs/fabian/scratch/programs/gentoo/usr/bin/emerge", line 3257, in ?
> >     mydepgraph.merge(pkglist)
> >   File "/ufs/fabian/scratch/programs/gentoo/usr/bin/emerge", line 1951, in 
> > merge    
> > retval=portage.doebuild(y,"clean",myroot,self.pkgsettings,edebug,cleanup=1,tree="porttree")
> >   File 
> > "/net/pegasus.ins.cwi.nl/export/scratch0/fabian/programs/gentoo/usr/lib/portage/pym/portage.py",
> >  line 2698, in doebuild
> >     print "!!!",e
> > UnboundLocalError: local variable 'e' referenced before assignment
> > 
> > 
> > Do I understand Python's ****** stacktrace correctly if I think this is
> > an error during an error?  I guess figuring out what PORT_LOGDIR should
> > be will help...
> That 'UnboundLocalError' is a bug in prefix and trunk (fixed also).
attached the patch for this fix this time around also.
~harring
Index: pym/portage.py
===================================================================
--- pym/portage.py      (revision 2436)
+++ pym/portage.py      (revision 2437)
@@ -2700,7 +2700,7 @@
                        if not os.access(mysettings["PORT_LOGDIR"],os.F_OK):
                                try:
                                        os.mkdir(mysettings["PORT_LOGDIR"])
-                               except OSError:
+                               except OSError, e:
                                        print "!!! Unable to create PORT_LOGDIR"
                                        print "!!!",e
                        if os.access(mysettings["PORT_LOGDIR"]+"/",os.W_OK):

Attachment: pgpgYXj5w1ZBl.pgp
Description: PGP signature



Reply via email to