Use the python version of eerror
authorMarius Mauch <genone@gentoo.org>
Fri, 19 Oct 2007 10:27:54 +0000 (10:27 -0000)
committerMarius Mauch <genone@gentoo.org>
Fri, 19 Oct 2007 10:27:54 +0000 (10:27 -0000)
svn path=/main/trunk/; revision=8176

pym/portage/dbapi/vartree.py

index 45badc3e37ffcfbf3b0085b09ca571cae7312abd..fc8f4f7daf84bc514f79fc647163ece81739da63 100644 (file)
@@ -1768,13 +1768,10 @@ class dblink(object):
                        self.settings, 0, 0, mydbapi)
                prepare_build_dirs(destroot, self.settings, cleanup)
 
+               from portage.elog.messages import eerror as _eerror
                def eerror(lines):
-                       cmd = "source '%s/isolated-functions.sh' ; " % PORTAGE_BIN_PATH
-                       for line in lines:
-                               cmd += "eerror '%s' ; " % line
-                       from portage import process
-                       process.spawn(["bash", "-c", cmd],
-                               env=self.settings.environ())
+                       for l in lines:
+                               _eerror(l, phase="preinst", key=self.pkg)
 
                if collisions:
                        collision_protect = "collision-protect" in self.settings.features