diff options
-rw-r--r-- | pym/portage/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 31370e325..217db0aa7 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -4538,7 +4538,11 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, mysettings._filter_calling_env = True else: for var in "ARCH", "USERLAND": - if mysettings.get(var): + value = mysettings.get(var) + if value: + continue + if var == "USERLAND" and userland: + mysettings["USERLAND"] = userland continue msg = ("%s is not set... " % var) + \ ("Are you missing the '%setc/make.profile' symlink? " % \ |