commit:     ba5814b0d747800152e87fc42a348114ff2c6145
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat May  2 19:23:17 2015 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sat May  2 23:10:48 2015 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=ba5814b0

dblink: elog failed postinst (bug 547778)

This ensures that there's still an eerror elog message, even if the
failed postinst did not call eerror itself.

X-Gentoo-Bug: 547778
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=547778
Acked-by: Brian Dolbec <dolsen <AT> gentoo.org>

 pym/portage/dbapi/vartree.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index cacbf96..fca84d1 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -4376,8 +4376,9 @@ class dblink(object):
                if a != os.EX_OK:
                        # It's stupid to bail out here, so keep going 
regardless of
                        # phase return code.
-                       showMessage(_("!!! FAILED postinst: ")+str(a)+"\n",
-                               level=logging.ERROR, noiselevel=-1)
+                       self._elog("eerror", "postinst", [
+                               _("FAILED postinst: %s") % (a,),
+                       ])
 
                #update environment settings, library paths. DO NOT change 
symlinks.
                env_update(

Reply via email to