Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 81331 Details for
Bug 124471
emerge modifies /var/lib/portage/world when alternate ROOT is set
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch that uses WORLDFILE.lstrip(os.sep)
world_file_lstrip.patch (text/plain), 1.69 KB, created by
Zac Medico
on 2006-03-04 11:43:54 UTC
(
hide
)
Description:
patch that uses WORLDFILE.lstrip(os.sep)
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2006-03-04 11:43:54 UTC
Size:
1.69 KB
patch
obsolete
>Index: pym/portage.py >=================================================================== >--- pym/portage.py (revision 2811) >+++ pym/portage.py (working copy) >@@ -5826,7 +5826,7 @@ > os.chown(pdir, 0, portage_gid) > os.chmod(pdir, 02770) > >- write_atomic(os.path.join(self.myroot,WORLD_FILE),"\n".join(newworldlist)) >+ write_atomic(os.path.join(self.myroot, WORLD_FILE.lstrip(os.sep)),"\n".join(newworldlist)) > > #do original postrm > if myebuildpath and os.path.exists(myebuildpath): >Index: bin/emerge >=================================================================== >--- bin/emerge (revision 2811) >+++ bin/emerge (working copy) >@@ -1861,7 +1861,7 @@ > myfavdict[myfavkey]=myfavkey > print ">>> Recording",myfavkey,"in \"world\" favorites file..." > if not "--fetchonly" in myopts: >- portage.write_atomic(os.path.join(portage.root,portage.WORLD_FILE),"\n".join(myfavdict.values())) >+ portage.write_atomic(os.path.join(portage.root, portage.WORLD_FILE.lstrip(os.sep)),"\n".join(myfavdict.values())) > > portage.mtimedb["resume"]["mergelist"]=mymergelist[:] > >@@ -2032,7 +2032,7 @@ > myfavdict[myfavkey]=myfavkey > print ">>> Recording",myfavkey,"in \"world\" favorites file..." > emergelog(" === ("+str(mergecount)+" of "+str(len(mymergelist))+") Updating world file ("+x[pkgindex]+")") >- portage.write_atomic(os.path.join(myroot,portage.WORLD_FILE),"\n".join(myfavdict.values())) >+ portage.write_atomic(os.path.join(myroot, portage.WORLD_FILE.lstrip(os.sep)),"\n".join(myfavdict.values())) > > if ("noclean" not in portage.features) and (x[0] != "binary"): > short_msg = "emerge: ("+str(mergecount)+" of "+str(len(mymergelist))+") "+x[pkgindex]+" Clean Post"
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 124471
:
81293
| 81331