diff --git a/autodist-cgi b/autodist-cgi index abf2626..9ddfb3c 100755 --- a/autodist-cgi +++ b/autodist-cgi @@ -114,7 +114,7 @@ _EOF [ "${SHOWLOG/\/\.}" != "${SHOWLOG}" ] && continue if [ "${AUTOPORT_CHROOT[$i]}" ]; then BUILDLOGDIR="/var/autoport/${AUTOPORT_CHROOT[$i]}/home/${AUTOPORT_CHROOT_USER[$i]}/.autodist/log/" - elif [ "${AUTOPORT_NATIVE[$i]}" -o "${AUTOPORT_UPDATE[$i]}" ]; then + elif [ "${AUTOPORT_NATIVE[$i]}" -o "${AUTOPORT_UPDATE[$i]}" ]; then BUILDLOGDIR="/var/autodist/log/" fi if [ "${SHOWLOG/\/ok\/}" != "${SHOWLOG}" -o "${SHOWLOG/\failed\/}" != "${SHOWLOG}" ]; then @@ -259,13 +259,14 @@ _EOF # set -- ${BUILDNOW[$b]} JOBNAME=${BUILDNOW[$b]} [ "$JOBNAME" ] || continue - echo -n "$JOBNAME: " + echo -n "$JOBNAME: " rowcnt=0 if [ "${BUILDLOG[$b]}" ]; then for l in ${BUILDLOG[$b]}; do SUBJOBNAME=`echo $l | sed "s|.*/${JOBNAME}_\(.*\)\..*|\1|"` [ "${SUBJOBNAME:0:1}" = "_" ] && SUBJOBNAME=$l [ "$SUBJOBNAME" = "$l" ] && SUBJOBNAME=`echo $l | sed "s|.*/\(.*\)\..*|\1|"` + SUBJOBNAME=${SUBJOBNAME/__*} OPERATIONNAME=`echo $l | sed "s|\(.*\)/.*/.*|\1|"` OPERATIONSTATUS=`echo $l | sed "s|.*/\(.*\)/.*|\1|"` if [ $rowcnt -ge 4 ]; then @@ -273,15 +274,15 @@ _EOF rowcnt=0 fi if [ "$OPERATIONNAME" = "send" -a "$OPERATIONSTATUS" = "ok" ]; then - echo -n "$OPERATIONNAME/$OPERATIONSTATUS" + echo -n "$OPERATIONNAME:$OPERATIONSTATUS" elif [ "$OPERATIONNAME" = "install" -a "$OPERATIONSTATUS" = "ok" ]; then - echo -n "$OPERATIONNAME/$OPERATIONSTATUS" + echo -n "$OPERATIONNAME:$OPERATIONSTATUS" elif [ "$OPERATIONSTATUS" = "ok" ]; then - echo -n "$OPERATIONNAME/$OPERATIONSTATUS" + echo -n "$OPERATIONNAME:$OPERATIONSTATUS" else - echo -n "$OPERATIONNAME/$OPERATIONSTATUS" + echo -n "$OPERATIONNAME:$OPERATIONSTATUS" fi - [ "$SUBJOBNAME" != "$JOBNAME" ] && echo -en "($SUBJOBNAME)" + [ "$SUBJOBNAME" != "$JOBNAME" ] && echo -en "($SUBJOBNAME)" echo -n " " rowcnt=`expr $rowcnt + 1` done