resolver/output: use set for myfetchlist hashing
authorZac Medico <zmedico@gentoo.org>
Wed, 19 Oct 2011 21:32:40 +0000 (14:32 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 19 Oct 2011 21:32:40 +0000 (14:32 -0700)
pym/_emerge/resolver/output.py

index 7bfe0074662c56e09957305facb5b89df3e08da1..eed30190d56fee517193dcdc3e73be44d2cf76d4 100644 (file)
@@ -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()