Make doebuild() check XARGS together with ARCH and USERLAND.
authorZac Medico <zmedico@gentoo.org>
Sat, 29 Dec 2007 09:04:45 +0000 (09:04 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 29 Dec 2007 09:04:45 +0000 (09:04 -0000)
svn path=/main/trunk/; revision=9090

pym/portage/__init__.py

index 217db0aa7d63433e91e1c979f66f3ffd17a17f47..40e3d17496a2d26581d9eda3bb636e221ecd1da6 100644 (file)
@@ -4537,9 +4537,9 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
                        if env_stat:
                                mysettings._filter_calling_env = True
                        else:
-                               for var in "ARCH", "USERLAND":
+                               for var in "ARCH", "USERLAND", "XARGS":
                                        value = mysettings.get(var)
-                                       if value:
+                                       if value and value.strip():
                                                continue
                                        if var == "USERLAND" and userland:
                                                mysettings["USERLAND"] = userland