Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 76306 Details for
Bug 117988
[patch] `emerge -u portage` restart fails with "emerge: please tell me what to do."
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
emerge-restart-resume.patch
emerge-restart-resume.patch (text/plain), 1.74 KB, created by
Zac Medico
on 2006-01-06 00:43:57 UTC
(
hide
)
Description:
emerge-restart-resume.patch
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2006-01-06 00:43:57 UTC
Size:
1.74 KB
patch
obsolete
>Index: portage-2.1_pre3-r1/bin/emerge >=================================================================== >--- portage-2.1_pre3-r1.orig/bin/emerge >+++ portage-2.1_pre3-r1/bin/emerge >@@ -2099,36 +2099,17 @@ class depgraph: > 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] >+ for arg in myopts: >+ if arg in badlongopts: >+ continue >+ mynewargv.append(arg) >+ if "--resume" not in mynewargv: >+ 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 117988
: 76306