From 3cf983b2c3aa9c13e151ad25c8f8aa77d56c9223 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 14 Dec 2006 20:42:33 +0000 Subject: [PATCH] Cache blocked slots for better efficiency. svn path=/main/trunk/; revision=5296 --- bin/emerge | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/emerge b/bin/emerge index 646aada40..020682894 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1626,6 +1626,7 @@ class depgraph: blocked_slots_final[cpv] = \ "%s:%s" % (portage.dep_getkey(cpv), final_db.aux_get(cpv, ["SLOT"])[0]) + blocked_slots_final_values = set(blocked_slots_final.itervalues()) for parent in list(self.blocker_parents[blocker]): ptype, proot, pcpv, pstatus = parent pdbapi = self.trees[proot][self.pkg_tree_map[ptype]].dbapi @@ -1648,7 +1649,7 @@ class depgraph: # merge of either package is triggered. continue if pstatus == "merge" and \ - slot_atom not in blocked_slots_final.values(): + slot_atom not in blocked_slots_final_values: upgrade_matches = final_db.match(slot_atom) if upgrade_matches: # Apparently an upgrade may be able to invalidate -- 2.26.2