return 1
;;
esac
- echo -e "$@" | while read ; do
+ echo -e "$@" | while read -r ; do
echo "$messagetype $REPLY" >> \
"${T}/logging/${EBUILD_PHASE:-other}"
done
eqawarn() {
elog_base QA "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo -e "$@" | while read ; do
- vecho -e " $WARN*$NORMAL $REPLY" >&2
+ echo -e "$@" | while read -r ; do
+ vecho " $WARN*$NORMAL $REPLY" >&2
done
LAST_E_CMD="eqawarn"
return 0
elog() {
elog_base LOG "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo -e "$@" | while read ; do
- echo -e " $GOOD*$NORMAL $REPLY"
+ echo -e "$@" | while read -r ; do
+ echo " $GOOD*$NORMAL $REPLY"
done
LAST_E_CMD="elog"
return 0
einfo() {
elog_base INFO "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo -e "$@" | while read ; do
- echo -e " $GOOD*$NORMAL $REPLY"
+ echo -e "$@" | while read -r ; do
+ echo " $GOOD*$NORMAL $REPLY"
done
LAST_E_CMD="einfo"
return 0
ewarn() {
elog_base WARN "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo -e "$@" | while read ; do
- echo -e " $WARN*$NORMAL $RC_INDENTATION$REPLY" >&2
+ echo -e "$@" | while read -r ; do
+ echo " $WARN*$NORMAL $RC_INDENTATION$REPLY" >&2
done
LAST_E_CMD="ewarn"
return 0
eerror() {
elog_base ERROR "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo -e "$@" | while read ; do
- echo -e " $BAD*$NORMAL $RC_INDENTATION$REPLY" >&2
+ echo -e "$@" | while read -r ; do
+ echo " $BAD*$NORMAL $RC_INDENTATION$REPLY" >&2
done
LAST_E_CMD="eerror"
return 0
fi
if [[ ${abort} == "yes" ]] ; then
if [[ ${gentoo_bug} == "yes" ]] ; then
- die "poor code kills airplanes"
+ die "install aborted due to" \
+ "poor programming practices shown above"
else
echo "Please do not file a Gentoo bug and instead" \
"report the above QA issues directly to the upstream" \
"developers of this software." | fmt -w 70 | \
while read line ; do eqawarn "${line}" ; done
eqawarn "Homepage: ${HOMEPAGE}"
- hasq stricter ${FEATURES} && die "poor code kills airplanes"
+ hasq stricter ${FEATURES} && die "install aborted due to" \
+ "poor programming practices shown above"
fi
fi
fi
__slots__ = ("satisfied", "optional", "rebuild")
def __int__(self):
+ """
+ Note: These priorities are only used for measuring hardness
+ in the circular dependency display via digraph.debug_print(),
+ and nothing more. For actual merge order calculations, the
+ measures defined by the DepPriorityNormalRange and
+ DepPrioritySatisfiedRange classes are used.
+
+ Attributes Hardness
+
+ not satisfied and buildtime 8
+ not satisfied and runtime 7
+ not satisfied and runtime_post 6
+ satisfied and buildtime and rebuild 5
+ satisfied and buildtime 4
+ satisfied and runtime 3
+ satisfied and runtime_post 2
+ optional 1
+ (none of the above) 0
+
+ """
+ if not self.satisfied:
+ if self.buildtime:
+ return 8
+ if self.runtime:
+ return 7
+ if self.runtime_post:
+ return 6
+ if self.buildtime:
+ if self.rebuild:
+ return 5
+ return 4
+ if self.runtime:
+ return 3
+ if self.runtime_post:
+ return 2
+ if self.optional:
+ return 1
return 0
def __str__(self):