Just use ${PN} instead of catpkgsplit().
authorZac Medico <zmedico@gentoo.org>
Tue, 27 Nov 2007 22:12:21 +0000 (22:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 27 Nov 2007 22:12:21 +0000 (22:12 -0000)
svn path=/main/branches/2.1.2/; revision=8717

pym/portage.py

index 507cc437f14782ef4a3d69903de9c415b4a8d24e..44ca818dc4b72bfc5c8b4804220084a38b51b4f1 100644 (file)
@@ -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.