From 36fd75fbc3f6b0f3dbae655c0b1b125735f8d90b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 19 Oct 2011 14:32:40 -0700 Subject: [PATCH] resolver/output: use set for myfetchlist hashing --- pym/_emerge/resolver/output.py | 4 ++-- 1 file 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() -- 2.26.2