Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 23789 Details for
Bug 37498
A package's install log is split across several files
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
log_counter.patch
01--portage.py--log_counter.patch (text/plain), 2.96 KB, created by
TGL
on 2004-01-14 06:44:53 UTC
(
hide
)
Description:
log_counter.patch
Filename:
MIME Type:
Creator:
TGL
Created:
2004-01-14 06:44:53 UTC
Size:
2.96 KB
patch
obsolete
>--- pym/portage.py.orig 2004-01-14 04:05:54.243780176 +0100 >+++ pym/portage.py 2004-01-14 04:16:42.497230672 +0100 >@@ -1820,7 +1820,7 @@ > actionmap[mydo]["args"][0], > actionmap[mydo]["args"][1]) > >-def doebuild(myebuild,mydo,myroot,mysettings,debug=0,listonly=0,fetchonly=0,cleanup=0): >+def doebuild(myebuild,mydo,myroot,mysettings,debug=0,listonly=0,fetchonly=0,cleanup=0,log_counter=0): > global db > > ebuild_path = os.path.abspath(myebuild) >@@ -2003,14 +2003,18 @@ > mysettings["WORKDIR"]=mysettings["BUILDDIR"]+"/work" > mysettings["D"]=mysettings["BUILDDIR"]+"/image/" > >+ # if we don't get a log_counter from treewalk or unmerge, guess a new one >+ if log_counter <= 0: >+ log_counter = db[myroot]["vartree"].dbapi.get_counter_tick_core("/") >+ > if mysettings.has_key("PORT_LOGDIR"): > if os.access(mysettings["PORT_LOGDIR"]+"/",os.W_OK): > try: >- os.chown(mysettings["BUILD_PREFIX"],portage_uid,portage_gid) >+ os.chown(mysettings["PORT_LOGDIR"],portage_uid,portage_gid) > os.chmod(mysettings["PORT_LOGDIR"],06770) > if not mysettings.has_key("LOG_PF") or (mysettings["LOG_PF"] != mysettings["PF"]): > mysettings["LOG_PF"]=mysettings["PF"] >- mysettings["LOG_COUNTER"]=str(db[myroot]["vartree"].dbapi.get_counter_tick_core("/")) >+ mysettings["LOG_COUNTER"]=str(log_counter) > except ValueError, e: > mysettings["PORT_LOGDIR"]="" > print "!!! Unable to chown/chmod PORT_LOGDIR. Disabling logging." >@@ -5133,9 +5137,15 @@ > myebuildpath=self.dbdir+"/"+x > break > >+ # get counter to use it as LOG_COUNTER for prerm/postrm >+ try: >+ mycounter = long(self.getstring("COUNTER")) >+ except ValueError: >+ mycounter = 0 >+ > #do prerm script > if myebuildpath and os.path.exists(myebuildpath): >- a=doebuild(myebuildpath,"prerm",self.myroot,self.settings,cleanup=cleanup) >+ a=doebuild(myebuildpath,"prerm",self.myroot,self.settings,cleanup=cleanup,log_counter=mycounter) > # XXX: Decide how to handle failures here. > if a != 0: > writemsg("!!! FAILED prerm: "+str(a)+"\n") >@@ -5352,7 +5362,7 @@ > if myebuildpath and os.path.exists(myebuildpath): > # XXX: This should be the old config, not the current one. > # XXX: Use vardbapi to load up env vars. >- a=doebuild(myebuildpath,"postrm",self.myroot,self.settings) >+ a=doebuild(myebuildpath,"postrm",self.myroot,self.settings,log_counter=mycounter) > # XXX: Decide how to handle failures here. > if a != 0: > writemsg("!!! FAILED postrm: "+str(a)+"\n") >@@ -5531,9 +5531,9 @@ > if myebuild: > # if we are merging a new ebuild, use *its* pre/postinst rather than using the one in /var/db/pkg > # (if any). >- a=doebuild(myebuild,"postinst",root,self.settings) >+ a=doebuild(myebuild,"postinst",root,self.settings,log_counter=counter) > else: >- a=doebuild(inforoot+"/"+self.pkg+".ebuild","postinst",root,self.settings) >+ a=doebuild(inforoot+"/"+self.pkg+".ebuild","postinst",root,self.settings,log_counter=counter) > > # XXX: Decide how to handle failures here. > if a != 0: > >
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 37498
:
23324
|
23789
|
24248
|
52359