summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2004-10-25 04:31:14 +0000
committerkris <kris@FreeBSD.org>2004-10-25 04:31:14 +0000
commit5c9ee9e239002a1149aeb0ebc4625a73ea26a1cf (patch)
tree3e8b22eae89c61049a591b08b13ad8b8d0ed5e5c /Tools
parent334f015dd6d561133084ac920bf3a8bcdb181718 (diff)
downloadFreeBSD-ports-5c9ee9e239002a1149aeb0ebc4625a73ea26a1cf.zip
FreeBSD-ports-5c9ee9e239002a1149aeb0ebc4625a73ea26a1cf.tar.gz
If the symlink under latest/ exists, then use that to find the most recent
error log for the port, instead of assuming it exists in the current build.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/processfail7
1 files changed, 6 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/processfail b/Tools/portbuild/scripts/processfail
index a68f9c8..587dc25 100755
--- a/Tools/portbuild/scripts/processfail
+++ b/Tools/portbuild/scripts/processfail
@@ -51,7 +51,12 @@ IFS='|'
while read dir name ver date last count; do
echo "<tr>" >> $of
echo "<td><a href=\"http://cvsweb.freebsd.org/ports/$dir\">$dir</a></td>" >> $of
- echo "<td><a href=\"${arch}-${branch}-latest/$ver.log\">$ver</a></td>" >> $of
+ if [ -L ${pb}/${arch}/${branch}/latest/${dir} ]; then
+ err=$(readlink ${pb}/${arch}/${branch}/latest/${dir})
+ echo "<td><a href=\"${arch}-errorlogs/$(basename $(dirname ${err}))/$(basename ${err})\">$ver</a></td>" >> $of
+ else
+ echo "<td><a href=\"${arch}-${branch}-latest/$ver.log\">$ver</a></td>" >> $of
+ fi
# echo "<td align=\"right\">$affby</td><td align=\"right\">$4 Kb</td>" >> $of
# echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
OpenPOWER on IntegriCloud