Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 80499 Details for
Bug 122527
Allow emerge to save its --resume data
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch that makes a backup mergelist automatically
resume_backup.patch (text/plain), 1.54 KB, created by
Zac Medico
on 2006-02-22 23:02:08 UTC
(
hide
)
Description:
patch that makes a backup mergelist automatically
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2006-02-22 23:02:08 UTC
Size:
1.54 KB
patch
obsolete
>Index: pym/portage.py >=================================================================== >--- pym/portage.py (revision 2771) >+++ pym/portage.py (working copy) >@@ -6721,7 +6721,8 @@ > mtimedbkeys=[ > "updates", "info", > "version", "starttime", >-"resume", "ldpath" >+"resume", "resume_backup", >+"ldpath" > ] > mtimedbfile=root+"var/cache/edb/mtimedb" > try: >Index: bin/emerge >=================================================================== >--- bin/emerge (revision 2771) >+++ bin/emerge (working copy) >@@ -3178,7 +3178,13 @@ > print darkgreen("These are the packages that would be %s, in order:") % action > print > >- if ("--resume" in myopts) and portage.mtimedb.has_key("resume"): >+ if "--resume" in myopts and \ >+ ("resume" in portage.mtimedb or >+ "resume_backup" in portage.mtimedb): >+ if "resume" not in portage.mtimedb: >+ portage.mtimedb["resume"] = portage.mtimedb["resume_backup"] >+ del portage.mtimedb["resume_backup"] >+ portage.commit_mtimedb() > myresumeopts=portage.mtimedb["resume"]["myopts"][:] > > for opt in ("--skipfirst", "--ask", "--verbose"): >@@ -3285,6 +3291,11 @@ > favorites=portage.mtimedb["resume"]["favorites"] > mydepgraph.merge(portage.mtimedb["resume"]["mergelist"]) > else: >+ if "resume" in portage.mtimedb and \ >+ len(portage.mtimedb["resume"]["mergelist"]) > 1: >+ portage.mtimedb["resume_backup"] = portage.mtimedb["resume"] >+ del portage.mtimedb["resume"] >+ portage.commit_mtimedb() > portage.mtimedb["resume"]={} > portage.mtimedb["resume"]["myopts"]=myopts > portage.mtimedb["resume"]["favorites"]=favorites
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 122527
: 80499