diff options
author | kris <kris@FreeBSD.org> | 2004-10-25 12:27:02 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2004-10-25 12:27:02 +0800 |
commit | 8e8455057b291574be4c990e1024c627754bb11a (patch) | |
tree | 98b50192f6a762e4147b4464a80d4c33a503dfe9 /Tools/portbuild | |
parent | 4351a908d8386a35a8c2287ff1720e2fc0234a62 (diff) | |
download | freebsd-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-x | Tools/portbuild/scripts/buildfailure | 7 |
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} |