summaryrefslogtreecommitdiff
path: root/cgi/live-build-cgi
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/live-build-cgi')
-rwxr-xr-xcgi/live-build-cgi4
1 files changed, 4 insertions, 0 deletions
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}/" \