local messagetype
[ -z "${1}" -o -z "${T}" -o ! -d "${T}/logging" ] && return 1
case "${1}" in
- BLANK|INFO|WARN|ERROR|LOG|QA)
+ INFO|WARN|ERROR|LOG|QA)
messagetype="${1}"
shift
;;
return 0
}
-eblank() {
- [[ ${LAST_E_CMD} == "eblank" ]] && return 0
- elog_base BLANK
- [[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo -e " ${BLANK}*${NORMAL}"
- LAST_E_CMD="eblank"
- return 0
-}
-
eqawarn() {
elog_base QA "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
PORTAGE_WORKDIR_MODE="0700"
# Some defaults for elog
-PORTAGE_ELOG_CLASSES="blank log warn error"
+PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_ELOG_MAILURI="@rootuser@"
self._libs = libs
self._obj_properties = obj_properties
+ def isMasterLink(self, obj):
+ basename = os.path.basename(obj)
+ if obj not in self._obj_properties:
+ obj = os.path.realpath(obj)
+ if obj not in self._obj_properties:
+ raise KeyError("%s not in object list" % obj)
+ soname = self._obj_properties[obj][3]
+ return (len(basename) < len(soname))
+
def listLibraryObjects(self):
rValue = []
if not self._libs:
if not has_external_consumers(lib, old_contents, candidates):
candidates.remove(lib)
continue
+ if linkmap.isMasterLink(lib):
+ candidates.remove(lib)
+ continue
# only preserve the lib if there is no other copy to use for each consumer
keep = False
for c in linkmap.findConsumers(lib):
writemsg("!!! malformed entry in " + \
"log file: '%s'\n" % filename, noiselevel=-1)
continue
+
if lastmsgtype is None:
lastmsgtype = msgtype
+
if msgtype == lastmsgtype:
msgcontent.append(msg)
else:
"WARN": printer.ewarn,
"ERROR": printer.eerror,
"LOG": printer.einfo,
- "QA": printer.ewarn,
- "BLANK": printer.eblank}
+ "QA": printer.ewarn}
if isinstance(msgcontent, basestring):
msgcontent = [msgcontent]
for line in msgcontent:
sys.stdout.flush()
self.__last_e_cmd = "ewarn"
- def eblank(self, msg):
- """
- Shows a blank line. Consecutive eblank calls are all collapsed
- into a single blank line.
- """
- if self.__last_e_cmd == "eblank":
- return
- if not self.quiet:
- if self.__last_e_cmd == "ebegin":
- sys.stdout.write("\n")
- sys.stdout.write(colorize("BLANK", " * ") + "\n")
- sys.stdout.flush()
- self.__last_e_cmd = "eblank"
-
def ewend(self, errno, *msg):
"""
Indicates the completion of a process, optionally displaying a message