* [gentoo-portage-dev] [PATCH] dblink: elog failed postinst (bug 547778)
@ 2015-05-02 19:28 Zac Medico
2015-05-02 23:08 ` Brian Dolbec
0 siblings, 1 reply; 2+ messages in thread
From: Zac Medico @ 2015-05-02 19:28 UTC (permalink / raw
To: gentoo-portage-dev; +Cc: Zac Medico
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
---
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(
--
2.3.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [gentoo-portage-dev] [PATCH] dblink: elog failed postinst (bug 547778)
2015-05-02 19:28 [gentoo-portage-dev] [PATCH] dblink: elog failed postinst (bug 547778) Zac Medico
@ 2015-05-02 23:08 ` Brian Dolbec
0 siblings, 0 replies; 2+ messages in thread
From: Brian Dolbec @ 2015-05-02 23:08 UTC (permalink / raw
To: gentoo-portage-dev
On Sat, 2 May 2015 12:28:00 -0700
Zac Medico <zmedico@gentoo.org> wrote:
> 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
> ---
> 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(
looks fine :)
--
Brian Dolbec <dolsen>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-02 23:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-02 19:28 [gentoo-portage-dev] [PATCH] dblink: elog failed postinst (bug 547778) Zac Medico
2015-05-02 23:08 ` Brian Dolbec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox