From 635e889b63cb2006e5297967a5926fde582979a2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 18 Jan 2010 22:53:24 +0000 Subject: [PATCH] Don't bail out if postinst fails. Thanks to Brain Harring for the suggestion. svn path=/main/trunk/; revision=15202 --- 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 07286b602..46b7f8333 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -3992,11 +3992,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