summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-19 14:32:40 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-19 14:32:40 -0700
commit36fd75fbc3f6b0f3dbae655c0b1b125735f8d90b (patch)
tree475fef5da5998cda190b4b3d267b7551b93d4fe5
parent3824bdfdaa848d266320d47f22f27498c3d300b5 (diff)
downloadportage-36fd75fbc3f6b0f3dbae655c0b1b125735f8d90b.tar.gz
portage-36fd75fbc3f6b0f3dbae655c0b1b125735f8d90b.tar.bz2
portage-36fd75fbc3f6b0f3dbae655c0b1b125735f8d90b.zip
resolver/output: use set for myfetchlist hashing
-rw-r--r--pym/_emerge/resolver/output.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/resolver/output.py b/pym/_emerge/resolver/output.py
index 7bfe00746..eed30190d 100644
--- a/pym/_emerge/resolver/output.py
+++ b/pym/_emerge/resolver/output.py
@@ -335,7 +335,7 @@ class Display(object):
for myfetchfile in myfilesdict:
if myfetchfile not in self.myfetchlist:
mysize += myfilesdict[myfetchfile]
- self.myfetchlist.append(myfetchfile)
+ self.myfetchlist.add(myfetchfile)
if pkg_info.ordered:
self.counters.totalsize += mysize
self.verboseadd += _format_size(mysize)
@@ -795,7 +795,7 @@ class Display(object):
mylist = self.get_display_list(self.conf.mylist)
# files to fetch list - avoids counting a same file twice
# in size display (verbose mode)
- self.myfetchlist = []
+ self.myfetchlist = set()
# Use this set to detect when all the "repoadd" strings are "[0]"
# and disable the entire repo display in this case.
repoadd_set = set()