Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 121564 Details for
Bug 181387
traceback when remerging portage with =sys-apps/portage-2.1.2.10
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix UnboundLocalError: local variable 'mymtime' (triggered by confmem)
mymtime.patch (text/plain), 1.25 KB, created by
Zac Medico
on 2007-06-09 11:03:55 UTC
(
hide
)
Description:
fix UnboundLocalError: local variable 'mymtime' (triggered by confmem)
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-06-09 11:03:55 UTC
Size:
1.25 KB
patch
obsolete
>Index: pym/portage.py >=================================================================== >--- pym/portage.py (revision 6778) >+++ pym/portage.py (revision 6779) >@@ -7677,13 +7677,15 @@ > # handy variables; mydest is the target object on the live filesystems; > # mysrc is the source object in the temporary install dir > try: >- mydmode = os.lstat(mydest).st_mode >+ mydstat = os.lstat(mydest) >+ mydmode = mydstat.st_mode > except OSError, e: > if e.errno != errno.ENOENT: > raise > del e > #dest file doesn't exist >- mydmode=None >+ mydstat = None >+ mydmode = None > > if stat.S_ISLNK(mymode): > # we are merging a symbolic link >@@ -7803,6 +7805,7 @@ > mydestdir=os.path.dirname(mydest) > moveme=1 > zing="!!!" >+ mymtime = None > if mydmode!=None: > # destination file exists > if stat.S_ISDIR(mydmode): >@@ -7826,9 +7829,11 @@ > """ An identical update has previously been > merged. Skip it unless the user has chosen > --noconfmem.""" >- zing = "-o-" > moveme = cfgfiledict["IGNORE"] > cfgprot = cfgfiledict["IGNORE"] >+ if not moveme: >+ zing = "-o-" >+ mymtime = long(mydstat.st_mtime) > else: > moveme = 1 > cfgprot = 1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 181387
: 121564