summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-09-29 00:47:11 +0000
committerZac Medico <zmedico@gentoo.org>2006-09-29 00:47:11 +0000
commitef4362c61664f824a916b76fdb281ba24582abd4 (patch)
tree6601c4d1a1c734e7478ab25a88a0fab7e8443fd7 /bin
parente36e219dc96f18cf33cfc21e044b3fb6154f3dfe (diff)
downloadportage-ef4362c61664f824a916b76fdb281ba24582abd4.tar.gz
portage-ef4362c61664f824a916b76fdb281ba24582abd4.tar.bz2
portage-ef4362c61664f824a916b76fdb281ba24582abd4.zip
Store myopts in the mtimedb as a list for backward compatibility.
svn path=/main/trunk/; revision=4550
Diffstat (limited to 'bin')
-rwxr-xr-xbin/emerge15
1 files changed, 9 insertions, 6 deletions
diff --git a/bin/emerge b/bin/emerge
index dd56e9023..af6d552f0 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -3466,15 +3466,16 @@ def action_build(settings, trees, mtimedb,
mtimedb["resume"] = mtimedb["resume_backup"]
del mtimedb["resume_backup"]
mtimedb.commit()
- myresumeopts=mtimedb["resume"]["myopts"][:]
+ # XXX: "myopts" is a list for backward compatibility.
+ myresumeopts = dict([(k,True) for k in mtimedb["resume"]["myopts"]])
for opt in ("--skipfirst", "--ask", "--tree"):
- while opt in myresumeopts:
- myresumeopts.remove(opt)
+ if opt in myresumeopts:
+ del myresumeopts[opt]
- for myopt in myopts:
+ for myopt, myarg in myopts.iteritems():
if myopt not in myresumeopts:
- myresumeopts.append(myopt)
+ myresumeopts[myopt] = myarg
myopts=myresumeopts
myparams = create_depgraph_params(myopts, myaction)
mydepgraph = depgraph(settings, trees,
@@ -3607,7 +3608,9 @@ def action_build(settings, trees, mtimedb,
del mtimedb["resume"]
mtimedb.commit()
mtimedb["resume"]={}
- mtimedb["resume"]["myopts"]=myopts
+ # XXX: Stored as a list for backward compatibility.
+ mtimedb["resume"]["myopts"] = \
+ [k for k in myopts if myopts[k] is True]
mtimedb["resume"]["favorites"]=favorites
if ("--digest" in myopts) and not ("--fetchonly" in myopts or "--fetch-all-uri" in myopts):
for pkgline in mydepgraph.altlist():