Fix breakage from previous commit.
authorZac Medico <zmedico@gentoo.org>
Fri, 27 Aug 2010 02:28:45 +0000 (19:28 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 27 Aug 2010 02:28:45 +0000 (19:28 -0700)
pym/_emerge/depgraph.py

index 69ba8b2cc1a1d49e3d36002e7d62dfe432bd0875..ca918e789941091825344972aff908c38d720d1b 100644 (file)
@@ -2616,6 +2616,8 @@ class depgraph(object):
                                        # Make --noreplace take precedence over --newuse.
                                        if not pkg.installed and noreplace and \
                                                cpv in vardb.match(atom):
+                                               inst_pkg = self._pkg(pkg.cpv, "installed",
+                                                       root_config, installed=True)
                                                if inst_pkg.visible:
                                                        # If the installed version is masked, it may
                                                        # be necessary to look at lower versions,