projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef4362c
)
Use dict.pop(k, None) to delete items if they exist.
author
Zac Medico
<zmedico@gentoo.org>
Fri, 29 Sep 2006 01:14:31 +0000
(
01:14
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 29 Sep 2006 01:14:31 +0000
(
01:14
-0000)
svn path=/main/trunk/; revision=4551
bin/emerge
patch
|
blob
|
history
diff --git
a/bin/emerge
b/bin/emerge
index af6d552f06bbdff32b64c45a2b97547ad43e37b7..6e2b3c88387ab091217d93bd1af4c3d7f7db1609 100755
(executable)
--- a/
bin/emerge
+++ b/
bin/emerge
@@
-3470,8
+3470,7
@@
def action_build(settings, trees, mtimedb,
myresumeopts = dict([(k,True) for k in mtimedb["resume"]["myopts"]])
for opt in ("--skipfirst", "--ask", "--tree"):
- if opt in myresumeopts:
- del myresumeopts[opt]
+ myresumeopts.pop(opt, None)
for myopt, myarg in myopts.iteritems():
if myopt not in myresumeopts: