From cd6e995182b2d47c7c80b11010d2274b4ea5dabc Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Thu, 18 Jul 2002 16:42:49 +0000 Subject: only register if we're not there yet. don't worry about metapkgs, dependencies or the like for everything --- comps.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'comps.py') diff --git a/comps.py b/comps.py index 60d2195ba..08f9673a1 100644 --- a/comps.py +++ b/comps.py @@ -128,7 +128,8 @@ class Package: (self.state, self.selected) = state def registerComponent(self, comp): - self.comps.append(comp) + if comp not in self.comps: + self.comps.append(comp) def unregisterComponent(self, comp): try: @@ -710,6 +711,9 @@ class ComponentSet: self.compsById[comp.id] = comp for group in groups: + # everything is special and this speeds things up a bit + if group == "everything": + continue group = self.compsxml.groups[group] comp = self.compsDict[group.name] for id in group.groups.keys(): -- cgit