Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Nov 2012 06:10:34 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r243326 - projects/portbuild/scripts
Message-ID:  <201211200610.qAK6AYkV043743@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon (doc,ports committer)
Date: Tue Nov 20 06:10:34 2012
New Revision: 243326
URL: http://svnweb.freebsd.org/changeset/base/243326

Log:
  Do not create nonsense links when a logfile is incorrect.  This typically
  happens with a "can't fetch dependent package" setup error on pointyhat.

Modified:
  projects/portbuild/scripts/processlogs

Modified: projects/portbuild/scripts/processlogs
==============================================================================
--- projects/portbuild/scripts/processlogs	Tue Nov 20 06:01:03 2012	(r243325)
+++ projects/portbuild/scripts/processlogs	Tue Nov 20 06:10:34 2012	(r243326)
@@ -166,29 +166,43 @@ sort .logs/.all | while read line; do
     IFS="|"
     set -- ${line}
     unset IFS
-    mailto="$6"
-    if [ "$6" != "" ] ; then
-       mailto="<a href=\"mailto:$6\">$6</a>"
-    fi
+    affby=$3
+    size=$4
+    vcsweb=$5
+    maintainer=$6
+    reason=$7
+    datestamp=${10}
 
     echo "<tr>" >> $of
 
     echo "<td><a href=\"http://${MASTER_URL}/errorlogs/${arch}-errorlogs/${baselogdir}/$1\">$2</a></td>" >> $of
 
-    affby="$3"
     test "${affby}" = "0" -o "${affby}" = "-1" && affby="&nbsp;"
-    echo "<td align=\"right\">${affby}</td><td align=\"right\">$4 Kb</td>" >> $of
-    echo "<td><a href=\"${VCSWEB}/$5\">$5</a></td>" >> $of
-    echo "<td>$mailto</td>" >> $of
+    echo "<td align=\"right\">${affby}</td>" >> $of
+    echo "<td align=\"right\">$size Kb</td>" >> $of
+    if [ "$vcsweb" != "" -a "$vcsweb" != "NONE" ] ; then
+       vcsweb="<a href=\"vcsweb:$vcsweb\">$vcsweb</a>"
+    else
+       vcsweb="\?"
+    fi
+    echo "<td>$vcsweb</td>" >> $of
+    if [ "$maintainer" != "" -a "$maintainer" != "NONE" ] ; then
+       maintainer="<a href=\"mailto:$maintainer\">$maintainer</a>"
+    else
+       maintainer="\?"
+    fi
+    echo "<td>$maintainer</td>" >> $of
     echo "<td>" >> $of
 
     test "$9" = "broken" && echo "<font color=\"red\">[B]</font>" >> $of
-    reason="$7"
     echo "<a href=\"http://${MASTER_URL}/#$8\">$reason</a>" >> $of
     echo "</td>" >> $of
 
-    date=`echo ${10} | sed -e "s/_/ /g"`
-    echo "<td>$date</td>" >> $of
+    datestamp=`echo ${datestamp} | sed -e "s/_/ /g"`
+    if [ "$datestamp" == "" -o "$datestamp" == "NONE" ] ; then
+       datestamp="\?"
+    fi
+    echo "<td>$datestamp</td>" >> $of
 
     echo "</tr>" >> $of
 done
@@ -205,31 +219,45 @@ header "<th>SVN</th><th>Aff.</th><th>Siz
 if [ ${n_logs} -gt 0 ]; then
 sort -t \| +4 .logs/.all | while read line; do
     IFS="|"
-    set -- $line
+    set -- ${line}
     unset IFS
-    mailto="$6"
-    if [ "$6" != "" ] ; then
-       mailto="<a href=\"mailto:$6\">$6</a>"
-    fi
+    affby=$3
+    size=$4
+    vcsweb=$5
+    maintainer=$6
+    reason=$7
+    datestamp=${10}
 
     echo "<tr>" >> $of
 
-    echo "<td><a href=\"${VCSWEB}/$5\">$5</a></td>" >> $of
+    if [ "$vcsweb" != "" -a "$vcsweb" != "NONE" ] ; then
+       vcsweb="<a href=\"vcsweb:$vcsweb\">$vcsweb</a>"
+    else
+       vcsweb="\?"
+    fi
+    echo "<td>$vcsweb</td>" >> $of
 
-    affby="$3"
     test "${affby}" = "0" -o "${affby}" = "-1" && affby="&nbsp;"
-    echo "<td align=\"right\">${affby}</td><td align=\"right\">$4 Kb</td>" >> $of
+    echo "<td align=\"right\">${affby}</td>" >> $of
+    echo "<td align=\"right\">$size Kb</td>" >> $of
     echo "<td><a href=\"http://${MASTER_URL}/errorlogs/${arch}-errorlogs/${baselogdir}/$1\">$2</a></td>" >> $of
-    echo "<td>$mailto</td>" >> $of
+    if [ "$maintainer" != "" -a "$maintainer" != "NONE" ] ; then
+       maintainer="<a href=\"mailto:$maintainer\">$maintainer</a>"
+    else
+       maintainer="\?"
+    fi
+    echo "<td>$maintainer</td>" >> $of
 
     echo "<td>" >> $of
     test "$9" = "broken" && echo "<font color=\"red\">[B]</font>" >> $of
-    reason="$7"
     echo "<a href=\"http://${MASTER_URL}/#$8\">$reason</a>" >> $of
     echo "</td>" >> $of
 
-    date=`echo ${10} | sed -e "s/_/ /g"`
-    echo "<td>$date</td>" >> $of
+    datestamp=`echo ${datestamp} | sed -e "s/_/ /g"`
+    if [ "$datestamp" == "" -o "$datestamp" == "NONE" ] ; then
+       datestamp="\?"
+    fi
+    echo "<td>$datestamp</td>" >> $of
 
     echo "</tr>" >> $of
 done
@@ -246,31 +274,45 @@ header "<th>Maintainer</th><th>Port</th>
 if [ ${n_logs} -gt 0 ]; then
 sort -t \| +5 .logs/.all | while read line; do
     IFS="|"
-    set -- $line
+    set -- ${line}
     unset IFS
-    mailto="$6"
-    if [ "$6" != "" ] ; then
-       mailto="<a href=\"mailto:$6\">$6</a>"
-    fi
+    affby=$3
+    size=$4
+    vcsweb=$5
+    maintainer=$6
+    reason=$7
+    datestamp=${10}
 
     echo "<tr>" >> $of
 
-    echo "<td>$mailto</td>" >> $of
+    if [ "$maintainer" != "" -a "$maintainer" != "NONE" ] ; then
+       maintainer="<a href=\"mailto:$maintainer\">$maintainer</a>"
+    else
+       maintainer="\?"
+    fi
+    echo "<td>$maintainer</td>" >> $of
     echo "<td><a href=\"http://${MASTER_URL}/errorlogs/${arch}-errorlogs/${baselogdir}/$1\">$2</a></td>" >> $of
 
-    affby="$3"
     test "${affby}" = "0" -o "${affby}" = "-1" && affby="&nbsp;"
-    echo "<td align=\"right\">${affby}</td><td align=\"right\">$4 Kb</td>" >> $of
-    echo "<td><a href=\"${VCSWEB}/$5\">$5</a></td>" >> $of
+    echo "<td align=\"right\">${affby}</td>" >> $of
+    echo "<td align=\"right\">$size Kb</td>" >> $of
+    if [ "$vcsweb" != "" -a "$vcsweb" != "NONE" ] ; then
+       vcsweb="<a href=\"vcsweb:$vcsweb\">$vcsweb</a>"
+    else
+       vcsweb="\?"
+    fi
+    echo "<td>$vcsweb</td>" >> $of
 
     echo "<td>" >> $of
     test "$9" = "broken" && echo "<font color=\"red\">[B]</font>" >> $of
-    reason="$7"
     echo "<a href=\"http://${MASTER_URL}/#$8\">$reason</a>" >> $of
     echo "</td>" >> $of
 
-    date=`echo ${10} | sed -e "s/_/ /g"`
-    echo "<td>$date</td>" >> $of
+    datestamp=`echo ${datestamp} | sed -e "s/_/ /g"`
+    if [ "$datestamp" == "" -o "$datestamp" == "NONE" ] ; then
+       datestamp="\?"
+    fi
+    echo "<td>$datestamp</td>" >> $of
 
     echo "</tr>" >> $of
 done
@@ -289,29 +331,43 @@ sort -t \| +7 .logs/.all | while read li
     IFS="|"
     set -- ${line}
     unset IFS
-    mailto="$6"
-    if [ "$6" != "" ] ; then
-       mailto="<a href=\"mailto:$6\">$6</a>"
-    fi
+    affby=$3
+    size=$4
+    vcsweb=$5
+    maintainer=$6
+    reason=$7
+    datestamp=${10}
 
     echo "<tr>" >> $of
 
     echo "<td>" >> $of
     test "$9" = "broken" && echo "<font color=\"red\">[B]</font>" >> $of
-    reason="$7"
     echo "<a href=\"http://${MASTER_URL}/#$8\">$reason</a>" >> $of
     echo "</td>" >> $of
 
     echo "<td><a href=\"http://${MASTER_URL}/errorlogs/${arch}-errorlogs/${baselogdir}/$1\">$2</a></td>" >> $of
 
-    affby="$3"
     test "${affby}" = "0" -o "${affby}" = "-1" && affby="&nbsp;"
-    echo "<td align=\"right\">${affby}</td><td align=\"right\">$4 Kb</td>" >> $of
-    echo "<td><a href=\"${VCSWEB}/$5\">$5</a></td>" >> $of
-    echo "<td>$mailto</td>" >> $of
+    echo "<td align=\"right\">${affby}</td>" >> $of
+    echo "<td align=\"right\">$size Kb</td>" >> $of
+    if [ "$vcsweb" != "" -a "$vcsweb" != "NONE" ] ; then
+       vcsweb="<a href=\"vcsweb:$vcsweb\">$vcsweb</a>"
+    else
+       vcsweb="\?"
+    fi
+    echo "<td>$vcsweb</td>" >> $of
+    if [ "$maintainer" != "" -a "$maintainer" != "NONE" ] ; then
+       maintainer="<a href=\"mailto:$maintainer\">$maintainer</a>"
+    else
+       maintainer="\?"
+    fi
+    echo "<td>$maintainer</td>" >> $of
 
-    date=`echo ${10} | sed -e "s/_/ /g"`
-    echo "<td>$date</td>" >> $of
+    datestamp=`echo ${datestamp} | sed -e "s/_/ /g"`
+    if [ "$datestamp" == "" -o "$datestamp" == "NONE" ] ; then
+       datestamp="\?"
+    fi
+    echo "<td>$datestamp</td>" >> $of
 
     echo "</tr>" >> $of
 done
@@ -330,28 +386,41 @@ sort -t \| +9 .logs/.all | while read li
     IFS="|"
     set -- ${line}
     unset IFS
-
-    mailto="$6"
-    if [ "$6" != "" ] ; then
-       mailto="<a href=\"mailto:$6\">$6</a>"
-    fi
+    affby=$3
+    size=$4
+    vcsweb=$5
+    maintainer=$6
+    reason=$7
+    datestamp=${10}
 
     echo "<tr>" >> $of
 
-    date=`echo ${10} | sed -e "s/_/ /g"`
-    echo "<td>$date</td>" >> $of
+    datestamp=`echo ${datestamp} | sed -e "s/_/ /g"`
+    if [ "$datestamp" == "" -o "$datestamp" == "NONE" ] ; then
+       datestamp="\?"
+    fi
+    echo "<td>$datestamp</td>" >> $of
 
     echo "<td><a href=\"http://${MASTER_URL}/errorlogs/${arch}-errorlogs/${baselogdir}/$1\">$2</a></td>" >> $of
 
-    affby="$3"
     test "${affby}" = "0" -o "${affby}" = "-1" && affby="&nbsp;"
-    echo "<td align=\"right\">${affby}</td><td align=\"right\">$4 Kb</td>" >> $of
-    echo "<td><a href=\"${VCSWEB}/$5\">$5</a></td>" >> $of
-    echo "<td>$mailto</td>" >> $of
+    echo "<td align=\"right\">${affby}</td>" >> $of
+    echo "<td align=\"right\">$size Kb</td>" >> $of
+    if [ "$vcsweb" != "" -a "$vcsweb" != "NONE" ] ; then
+       vcsweb="<a href=\"vcsweb:$vcsweb\">$vcsweb</a>"
+    else
+       vcsweb="\?"
+    fi
+    echo "<td>$vcsweb</td>" >> $of
+    if [ "$maintainer" != "" -a "$maintainer" != "NONE" ] ; then
+       maintainer="<a href=\"mailto:$maintainer\">$maintainer</a>"
+    else
+       maintainer="\?"
+    fi
+    echo "<td>$maintainer</td>" >> $of
 
     echo "<td>" >> $of
     test "$9" = "broken" && echo "<font color=\"red\">[B]</font>" >> $of
-    reason="$7"
     echo "<a href=\"http://${MASTER_URL}/#$8\">$reason</a>" >> $of
     echo "</td>" >> $of
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211200610.qAK6AYkV043743>