aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2004-10-25 12:27:02 +0800
committerkris <kris@FreeBSD.org>2004-10-25 12:27:02 +0800
commit8e8455057b291574be4c990e1024c627754bb11a (patch)
tree98b50192f6a762e4147b4464a80d4c33a503dfe9 /Tools/portbuild
parent4351a908d8386a35a8c2287ff1720e2fc0234a62 (diff)
downloadfreebsd-ports-graphics-8e8455057b291574be4c990e1024c627754bb11a.tar.gz
freebsd-ports-graphics-8e8455057b291574be4c990e1024c627754bb11a.tar.zst
freebsd-ports-graphics-8e8455057b291574be4c990e1024c627754bb11a.zip
When a port build fails, create a symlink to the error log under
${arch}/${branch}/latest/${portdir}. We will use this in the processfail script, so that the "new package build errors" webpages do not have out-of-date links but instead link to the most recent copy of the build error.
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-xTools/portbuild/scripts/buildfailure7
1 files changed, 4 insertions, 3 deletions
diff --git a/Tools/portbuild/scripts/buildfailure b/Tools/portbuild/scripts/buildfailure
index f95d96de162..8194e080fc2 100755
--- a/Tools/portbuild/scripts/buildfailure
+++ b/Tools/portbuild/scripts/buildfailure
@@ -46,6 +46,7 @@ else
(echo "${portloc}|${pkgbase}|${pkgname}|${date}|${date}|1" >> failure) || cleanup
fi
-
-
-
+link=${pb}/${arch}/${branch}/latest/${portloc}
+mkdir -p $(dirname ${link})
+errorloc=$(realpath ${pb}/${arch}/${branch}/errors/${pkgname}.log)
+ln -sf ${errorloc} ${link}