Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 85477 Details for
Bug 131207
portage-2.0.54-r1 emerge --emptytree world restarts after emerging portage
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
use --resume functionality to restart portage
restart_resume.patch (text/plain), 2.28 KB, created by
Zac Medico
on 2006-04-25 12:47:04 UTC
(
hide
)
Description:
use --resume functionality to restart portage
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2006-04-25 12:47:04 UTC
Size:
2.28 KB
patch
obsolete
>Modified: bin/emerge >=================================================================== >--- bin/emerge 2006-02-05 06:02:52 UTC (rev 2666) >+++ bin/emerge 2006-02-05 19:22:00 UTC (rev 2667) >@@ -1783,7 +1783,7 @@ > ("livecvsportage" not in portage.settings.features): > if mylist.index(x)<len(mylist)-1: > p.append(red("*** Portage will stop merging at this point and reload itself,")) >- p.append(red(" recalculate dependencies, and complete the merge.")) >+ p.append(red(" then resume the merge.")) > if "--update" not in myopts: > p.append(darkgreen(" You may avoid the remerging of packages by updating portage on its own.")) > print >@@ -2119,36 +2119,16 @@ > if (myver != portage.VERSION) and \ > ("livecvsportage" not in portage.settings.features): > if len(mymergelist) > mergecount: >- myargv=sys.argv >- myr=0 >- for myra in range(len(myargv)): >- if myargv[myr][0:len("portage")]=="portage": >- del myargv[myr] >- myr-=1 >- if myargv[myr][0:len("sys-apps/portage")]=="sys-apps/portage": >- del myargv[myr] >- myr-=1 >- myr+=1 > emergelog(" *** RESTARTING emerge via exec() after change of portage version.") >+ del portage.mtimedb["resume"]["mergelist"][0] > portage.portageexit() >- # Remove --ask from options before restarting > mynewargv=[] >- badlongopts = ["--ask","--tree","--changelog"] >- badshortopts = ["a","t","l"] >- for arg in myargv: >- if arg[0:2] == "--": >- if arg in badlongopts: >- continue >- mynewargv += [arg] >- elif arg[0] == "-": >- myarg = "-" >- for ch in arg[1:]: >- if ch in badshortopts: >- continue >- myarg += ch >- mynewargv += [myarg] >- else: >- mynewargv += [arg] >+ badlongopts = ("--ask","--tree","--changelog","--skipfirst","--resume") >+ for arg in myopts: >+ if arg in badlongopts: >+ continue >+ mynewargv.append(arg) >+ mynewargv.append("--resume") > os.execv("/usr/lib/portage/bin/emerge", mynewargv) > > if ("--pretend" not in myopts) and ("--fetchonly" not in myopts) and ("--fetch-all-uri" not in myopts):
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 131207
:
85477
|
85766