summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-10-19 10:27:54 +0000
committerMarius Mauch <genone@gentoo.org>2007-10-19 10:27:54 +0000
commit8f99dfcae568824c13ed6e4c615b5f4dcf1cea98 (patch)
treeae3a0a4d3ea27d17ed55f944514e772cc6c11e81 /pym
parent5bf0525011ad05b45c043d66f8c0cbc9e605a8f4 (diff)
downloadportage-8f99dfcae568824c13ed6e4c615b5f4dcf1cea98.tar.gz
portage-8f99dfcae568824c13ed6e4c615b5f4dcf1cea98.tar.bz2
portage-8f99dfcae568824c13ed6e4c615b5f4dcf1cea98.zip
Use the python version of eerror
svn path=/main/trunk/; revision=8176
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/vartree.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index 45badc3e3..fc8f4f7da 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -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