unset x y
export SANDBOX_ON=${PORTAGE_SANDBOX_ON}
unset PORTAGE_SANDBOX_ON
+
+ # After loading the environment, make sure the color variables
+ # are in sync with the current NOCOLOR setting.
+ case "${NOCOLOR:-false}" in
+ yes|true)
+ unset_colors
+ ;;
+ no|false)
+ set_colors
+ ;;
+ esac
+
source_all_bashrcs
fi
if isinstance(dbkey, dict):
mysettings["dbkey"] = ""
pr, pw = os.pipe()
- fd_pipes = {0:0, 1:1, 2:2, 9:pw}
+ fd_pipes = {
+ 0:sys.stdin.fileno(),
+ 1:sys.stdout.fileno(),
+ 2:sys.stderr.fileno(),
+ 9:pw}
mypids = spawn(_shell_quote(ebuild_sh_binary) + " depend",
mysettings,
fd_pipes=fd_pipes, returnpid=True, droppriv=droppriv)
class portdbapi(dbapi):
"""this tree will scan a portage directory located at root (passed to init)"""
portdbapi_instances = []
- _non_category_dirs = ["eclass", "licenses",
- "metadata", "profiles", "scripts"]
+ _non_category_dirs = ["distfiles", "eclass", "licenses",
+ "metadata", "packages", "profiles", "scripts"]
_non_category_dirs = re.compile(r'^(%s)$' % "|".join(_non_category_dirs))
def __init__(self, porttree_root, mysettings=None):
portdbapi.portdbapi_instances.append(self)