projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c759b63
)
Use setdefault to avoid an extra dict lookup.
author
Zac Medico
<zmedico@gentoo.org>
Tue, 17 Oct 2006 03:11:25 +0000
(
03:11
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 17 Oct 2006 03:11:25 +0000
(
03:11
-0000)
svn path=/main/trunk/; revision=4733
bin/emerge
patch
|
blob
|
history
diff --git
a/bin/emerge
b/bin/emerge
index 604b9760141503e00e0a1bc5dd6f4b9b40969ad1..44e059a3c73ccf9a868b75cc4adf7ecca2ce528c 100755
(executable)
--- a/
bin/emerge
+++ b/
bin/emerge
@@
-3638,10
+3638,7
@@
def action_depclean(settings, trees, ldpath_mtimes,
pkgs = vardb.match(atom)
if not pkgs:
if not atom.startswith("!") and priority == hard:
- if atom in unresolveable:
- unresolveable[atom].append(parent)
- else:
- unresolveable[atom] = [parent]
+ unresolveable.setdefault(atom, []).append(parent)
continue
# Could put slot checking here to ensure that there aren't two
# packages with the same slot...