Fix broken variable references found by pyflakes. (trunk r10072)
authorZac Medico <zmedico@gentoo.org>
Fri, 2 May 2008 03:24:05 +0000 (03:24 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 2 May 2008 03:24:05 +0000 (03:24 -0000)
svn path=/main/branches/2.1.2/; revision=10074

bin/emerge

index eb9452d0eee36450631eb7f1072de9979b7c0d61..e1342d4ded2a91086683e8c7ba7c359061a78240 100755 (executable)
@@ -3329,7 +3329,7 @@ class depgraph(object):
                                                blockers is not None:
                                                # Re-use the blockers from the graph.
                                                blocker_atoms = sorted(blockers)
-                                               counter = long(node.metadata["COUNTER"])
+                                               counter = long(pkg.metadata["COUNTER"])
                                                blocker_data = \
                                                        blocker_cache.BlockerData(counter, blocker_atoms)
                                                blocker_cache[pkg.cpv] = blocker_data
@@ -4355,9 +4355,7 @@ class depgraph(object):
                                                        counters.newslot += 1
 
                                        if "--changelog" in self.myopts:
-                                               slot_atom = "%s:%s" % (portage.dep_getkey(pkg_key),
-                                                       mydbapi.aux_get(pkg_key, ["SLOT"])[0])
-                                               inst_matches = vardb.match(slot_atom)
+                                               inst_matches = vardb.match(pkg.slot_atom)
                                                if inst_matches:
                                                        changelogs.extend(self.calc_changelog(
                                                                portdb.findname(pkg_key),