From 0d828a8c65db74d175597bce2d5bb1d37109f068 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 29 Jan 2010 18:49:23 +0000 Subject: [PATCH] Don't bail out if postinst fails. Thanks to Brain Harring for the suggestion. (trunk r15202) svn path=/main/branches/2.1.7/; revision=15255 --- pym/portage/dbapi/vartree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 13c9269a3..75558a12f 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -2847,11 +2847,11 @@ class dblink(object): finally: self.settings.pop("PORTAGE_UPDATE_ENV", None) - # XXX: Decide how to handle failures here. 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) - return a downgrade = False for v in otherversions: -- 2.26.2