From: Zac Medico Date: Wed, 19 Oct 2011 21:32:40 +0000 (-0700) Subject: resolver/output: use set for myfetchlist hashing X-Git-Tag: v2.2.0_alpha70~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=36fd75fbc3f6b0f3dbae655c0b1b125735f8d90b;p=portage.git resolver/output: use set for myfetchlist hashing --- 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()