svn path=/main/branches/2.1.2/; revision=8717
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.