dblink: use self.mycpv in _elog
authorZac Medico <zmedico@gentoo.org>
Sat, 26 Mar 2011 02:43:12 +0000 (19:43 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 26 Mar 2011 02:43:12 +0000 (19:43 -0700)
pym/portage/dbapi/vartree.py

index d463c3a5e58d88f0b710cd17e64725815b3a6c9e..c90d86b63a9c1c574c3eb6e6afb0f00e9de269d6 100644 (file)
@@ -2762,7 +2762,7 @@ class dblink(object):
                func = getattr(portage.elog.messages, funcname)
                if self._scheduler is None:
                        for l in lines:
-                               func(l, phase=phase, key=self.settings.mycpv)
+                               func(l, phase=phase, key=self.mycpv)
                else:
                        background = self.settings.get("PORTAGE_BACKGROUND") == "1"
                        log_path = None
@@ -2770,7 +2770,7 @@ class dblink(object):
                                log_path = self.settings.get("PORTAGE_LOG_FILE")
                        out = portage.StringIO()
                        for line in lines:
-                               func(line, phase=phase, key=self.settings.mycpv, out=out)
+                               func(line, phase=phase, key=self.mycpv, out=out)
                        msg = out.getvalue()
                        self._scheduler.output(msg,
                                background=background, log_path=log_path)