From 47cf97ad6badb4cc0912447d89a7ef091926a5fe Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 27 Nov 2007 22:12:21 +0000 Subject: [PATCH] Just use ${PN} instead of catpkgsplit(). svn path=/main/branches/2.1.2/; revision=8717 --- pym/portage.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pym/portage.py b/pym/portage.py index 507cc437f..44ca818dc 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -3931,9 +3931,8 @@ def _doebuild_exit_status_check(mydo, settings): Returns an error string if the shell appeared to exit unsuccessfully, None otherwise. """ - if settings["ROOT"] == "/": - cat, pn, ver, rev = catpkgsplit(settings.mycpv) - if pn == "portage": + if settings.get("ROOT") == "/" and \ + settings.get("PN") == "portage": # portage upgrade or downgrade invalidates this check # since ebuild.sh portage version may differ from the # current instance that is running in python. -- 2.26.2