From d33c099ede8d64d9a7d72a26930ac109450e7504 Mon Sep 17 00:00:00 2001 From: Richard Nelson Date: Mon, 16 Jan 2012 19:22:47 -0600 Subject: l-b.cgi - Add pending build(s) to be processed ahead of your request. --- cgi/live-build-cgi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cgi') diff --git a/cgi/live-build-cgi b/cgi/live-build-cgi index 655418a79..6e8f8b607 100755 --- a/cgi/live-build-cgi +++ b/cgi/live-build-cgi @@ -118,11 +118,15 @@ else # Getting build identifier _BUILD=$(date +%Y%m%d.%H%M%S.%N) + # Getting number of builds pending. + _QUEUENUM=$(ls "${_TEMPDIR}"/*.build | wc -l) + #echo "${QUERY_STRING}" # Sending html confirmation # Note: On each string remember to use a delimeter that is not in the string. sed -e "s/BUILD/${_BUILD}/g" \ -e "s/EMAIL/${_EMAIL}/" \ + -e "s/QUEUENUM/${_QUEUENUM}/" \ -e "s/LB_BINARY_IMAGES/${LB_BINARY_IMAGES}/" \ -e "s/LB_DISTRIBUTION/${LB_DISTRIBUTION}/" \ -e "s/LB_PACKAGE_LISTS/${LB_PACKAGE_LISTS}/" \ -- cgit v1.2.3