summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-05-02 03:23:36 +0000
committerZac Medico <zmedico@gentoo.org>2008-05-02 03:23:36 +0000
commitba95595b7dbaf331ebfbd3156ad8eabd55a21979 (patch)
treef8b36974df36c484e60ac752144577ca35ae2994
parent40fe38a1470bb81e5f828e0cf55a9f995dd0cc77 (diff)
downloadportage-ba95595b7dbaf331ebfbd3156ad8eabd55a21979.tar.gz
portage-ba95595b7dbaf331ebfbd3156ad8eabd55a21979.tar.bz2
portage-ba95595b7dbaf331ebfbd3156ad8eabd55a21979.zip
Fix broken variable references found by pyflakes.
svn path=/main/trunk/; revision=10072
-rw-r--r--pym/_emerge/__init__.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 3f3d2a2a3..d2068f1ae 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -3182,7 +3182,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
@@ -4208,9 +4208,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),