# should have been masked.
raise
if not myarg:
+ # Existing child selection may not be valid unless
+ # it's added to the graph immediately, since "complete"
+ # mode may select a different child later.
+ dep.child = None
self._dynamic_config._ignored_deps.append(dep)
return 1
# Distributed under the terms of the GNU General Public License v2
# $Id$
-from __future__ import print_function
-
VERSION="$Rev$"[6:-2] + "-svn"
# ===========================================================================
try:
import sys
import codecs
- import copy
import errno
if not hasattr(errno, 'ESTALE'):
# ESTALE may not be defined on some systems, such as interix.
errno.ESTALE = -1
- import logging
import re
- import time
import types
try:
import cPickle as pickle
except ImportError:
import pickle
- import stat
try:
from subprocess import getstatusoutput as subprocess_getstatusoutput
except ImportError:
from StringIO import StringIO
import platform
- import warnings
# Temporarily delete these imports, to ensure that only the
# wrapped versions are imported by portage internals.
INCREMENTALS, EAPI, MISC_SH_BINARY, REPO_NAME_LOC, REPO_NAME_FILE, \
EPREFIX, EPREFIX_LSTRIP, BPREFIX, rootuid
- from portage.localization import _
-
except ImportError as e:
sys.stderr.write("\n\n")
sys.stderr.write("!!! Failed to complete portage imports. There are internal modules for\n")
# Don't allow the user to override certain variables in make.conf
profile_only_variables = self.configdict["defaults"].get(
"PROFILE_ONLY_VARIABLES", "").split()
+ profile_only_variables = stack_lists([profile_only_variables])
for k in profile_only_variables:
self.mygcfg.pop(k, None)
# The merge phase handles this already. Callers don't know how
# far this function got, so we have to call elog_process() here
# so that it's only called once.
- from portage.elog import elog_process
elog_process(mysettings.mycpv, mysettings)
if retval == os.EX_OK:
retval = merge(mysettings["CATEGORY"], mysettings["PF"],
break
if unicode_errors:
- from portage.elog.messages import eerror
for l in _merge_unicode_error(unicode_errors):
eerror(l, phase='install', key=mysettings.mycpv, out=out)
# Distributed under the terms of the GNU General Public License v2
# $Id$
-from __future__ import print_function
-
import os, sys
import os.path as osp