Gentoo Archives: gentoo-portage-dev

From: Brian Dolbec <dolsen@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] dblink: elog failed postinst (bug 547778)
Date: Sat, 02 May 2015 23:08:48
Message-Id: 20150502160842.6f28b2fb.dolsen@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] dblink: elog failed postinst (bug 547778) by Zac Medico
1 On Sat, 2 May 2015 12:28:00 -0700
2 Zac Medico <zmedico@g.o> wrote:
3
4 > This ensures that there's still an eerror elog message, even if the
5 > failed postinst did not call eerror itself.
6 >
7 > X-Gentoo-Bug: 547778
8 > X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=547778
9 > ---
10 > pym/portage/dbapi/vartree.py | 5 +++--
11 > 1 file changed, 3 insertions(+), 2 deletions(-)
12 >
13 > diff --git a/pym/portage/dbapi/vartree.py
14 > b/pym/portage/dbapi/vartree.py index cacbf96..fca84d1 100644
15 > --- a/pym/portage/dbapi/vartree.py
16 > +++ b/pym/portage/dbapi/vartree.py
17 > @@ -4376,8 +4376,9 @@ class dblink(object):
18 > if a != os.EX_OK:
19 > # It's stupid to bail out here, so keep
20 > going regardless of # phase return code.
21 > - showMessage(_("!!! FAILED postinst:
22 > ")+str(a)+"\n",
23 > - level=logging.ERROR, noiselevel=-1)
24 > + self._elog("eerror", "postinst", [
25 > + _("FAILED postinst: %s") % (a,),
26 > + ])
27 >
28 > #update environment settings, library paths. DO NOT
29 > change symlinks. env_update(
30
31
32 looks fine :)
33 --
34 Brian Dolbec <dolsen>