Allow cross-site use of the status script.
Also a random header change, and adjust cache frequency.
This commit is contained in:
parent
8d9614c41c
commit
62213b9f28
|
@ -1056,7 +1056,7 @@ MAIN_BUILD() {
|
|||
fi
|
||||
|
||||
if is_yes make_bins; then
|
||||
header -s "Creating archive"
|
||||
header -s "Creating source archive"
|
||||
_cd "$maindir"
|
||||
_rm "$repotgz"
|
||||
_cd "$maindir/$cleandir"
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
cache="/tmp/racket-build-status-cache"
|
||||
cachelock="$cache-lock"
|
||||
|
||||
printf 'Content-type: text/plain\r\n\r\n'
|
||||
printf 'Content-type: text/plain\r\nAccess-Control-Allow-Origin: *\r\n\r\n'
|
||||
|
||||
# cache status reports (avoids excessive work during builds)
|
||||
|
||||
# use a lockfile as a cheap hack to time cache refreshing
|
||||
if ! lockfile -r 0 -l 30 -s 0 "$cachelock" >& /dev/null \
|
||||
if ! lockfile -r 0 -l 25 -s 0 "$cachelock" >& /dev/null \
|
||||
&& [[ -e "$cache" ]]; then
|
||||
cat "$cache"; exit
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user