if [ -d "${S}" ]; then
srcdir=${S}
cd "${S}"
+ else
+ eqawarn "QA Notice: Directory does not exist: S=\"${S}\""
+ cd "${WORKDIR}"
fi
#our custom version of libtool uses $S and $ED to fix
#invalid paths in .la files
trap "abort_test" SIGINT SIGQUIT
if [ -d "${S}" ]; then
cd "${S}"
+ else
+ eqawarn "QA Notice: Directory does not exist: S=\"${S}\""
+ cd "${WORKDIR}"
fi
if ! hasq test $FEATURES && [ "${EBUILD_FORCE_TEST}" != "1" ]; then
vecho ">>> Test phase [not enabled]: ${CATEGORY}/${PF}"
mkdir "${PORTAGE_BUILDDIR}/image"
if [ -d "${S}" ]; then
cd "${S}"
+ else
+ eqawarn "QA Notice: Directory does not exist: S=\"${S}\""
+ cd "${WORKDIR}"
fi
vecho
vecho ">>> Install ${PF} into ${ED} category ${CATEGORY}"
return ret
repo_display = RepoDisplay(self.roots)
+ show_repos = False
tree_nodes = []
display_list = []
repoadd = "%s=>%s" % (
repo_display.repoStr(repo_path_prev),
repo_display.repoStr(repo_path_real))
- if repoadd:
+ if repoadd and repoadd != "0":
+ show_repos = True
verboseadd += teal("[%s]" % repoadd)
xs = list(portage.pkgsplit(x[2]))
if verbosity == 3:
print
print counters
- if p:
+ if show_repos:
sys.stdout.write(str(repo_display))
if "--changelog" in self.myopts:
from portage.util import normalize_path
# Dump the mod_echo output now so that our other notifications are shown
# last.
- from portage.elog import mod_echo
- mod_echo.finalize()
+ try:
+ from portage.elog import mod_echo
+ except ImportError:
+ pass # happens during downgrade to a version without the module
+ else:
+ mod_echo.finalize()
if "noinfo" not in settings.features:
chk_updated_info_files(normalize_path(target_root + EPREFIX), infodirs, info_mtimes, retval)
fd_flags[f] = fcntl.fcntl(f.fileno(), fcntl.F_GETFL)
buffsize = 65536
eof = False
+ # Use non-blocking mode to prevent read
+ # calls from blocking indefinitely.
+ try:
+ fcntl.fcntl(master_file.fileno(), fcntl.F_SETFL,
+ fd_flags[master_file] | os.O_NONBLOCK)
+ except EnvironmentError, e:
+ if e.errno != errno.EAGAIN:
+ raise
+ del e
+ # The EAGAIN error signals eof on FreeBSD.
+ eof = True
while not eof:
events = select.select(iwtd, owtd, ewtd)
for f in events[0]:
- # Use non-blocking mode to prevent read
- # calls from blocking indefinitely.
- try:
- fcntl.fcntl(f.fileno(), fcntl.F_SETFL,
- fd_flags[f] | os.O_NONBLOCK)
- except EnvironmentError, e:
- if e.errno != errno.EAGAIN:
- raise
- del e
- # The EAGAIN error signals eof on FreeBSD.
- eof = True
- break
buf = array.array('B')
try:
buf.fromfile(f, buffsize)
except EOFError:
pass
- fcntl.fcntl(f.fileno(), fcntl.F_SETFL, fd_flags[f])
if not buf:
eof = True
break
- # Use blocking mode for writes since we'd rather block than
- # trigger a EWOULDBLOCK error.
if f is master_file:
buf.tofile(stdout_file)
stdout_file.flush()
if not "_eclasses_" in entry:
noise.corruption(x,"missing _eclasses_ field")
continue
- if not portage.eclass_cache.is_eclass_data_valid(entry["_eclasses_"]):
+ if not eclass_cache.is_eclass_data_valid(entry["_eclasses_"]):
noise.eclass_stale(x)
continue
else:
- entry["_eclasses_"] = portage.eclass_cache.get_eclass_data(entry["INHERITED"].split(), \
+ entry["_eclasses_"] = eclass_cache.get_eclass_data(entry["INHERITED"].split(), \
from_master_only=True)
if not entry["_eclasses_"]:
noise.eclass_stale(x)
continue
except PortageException, e:
writemsg("!!! Error: aux_get('%s', %s)\n" % (mycpv, aux_keys),
- mycpv, noiselevel=-1)
+ noiselevel=-1)
writemsg("!!! %s\n" % str(e), noiselevel=-1)
del e
continue
created_dir = True
except OSError, oe:
func_call = "makedirs('%s')" % dir_path
- if errno.EEXIST == oe.errno:
+ if oe.errno in (errno.EEXIST, errno.EISDIR):
pass
elif oe.errno == errno.EPERM:
raise OperationNotPermitted(func_call)