cookutils rev 971
lighttpd/index.cgi: display <Recook> button for un-cooked packages too.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Sep 29 01:39:37 2017 +0300 (2017-09-29) |
parents | 68c17954b51b |
children | 12e37ac0edec |
files | lighttpd/index.cgi |
line diff
1.1 --- a/lighttpd/index.cgi Wed Sep 27 17:12:24 2017 +0100 1.2 +++ b/lighttpd/index.cgi Fri Sep 29 01:39:37 2017 +0300 1.3 @@ -1029,19 +1029,17 @@ 1.4 summary "$log" 1.5 1.6 # Display <Recook> button only for SliTaz web browser 1.7 - if [ -f "$log" ]; then 1.8 - case "$HTTP_USER_AGENT" in 1.9 - *SliTaz*) 1.10 - if [ -f $CACHE/cooker-request -a -n "$HTTP_REFERER" ]; then 1.11 - if grep -qs "^$pkg$" $CACHE/recook-packages; then 1.12 - show_note i "The package “$pkg” has been requested for recook" 1.13 - else 1.14 - echo "<a class='button' href='$base/?recook=${pkg//+/%2B}'>Recook $pkg</a>" 1.15 - fi 1.16 + case "$HTTP_USER_AGENT" in 1.17 + *SliTaz*) 1.18 + if [ -f $CACHE/cooker-request -a -n "$HTTP_REFERER" ]; then 1.19 + if grep -qs "^$pkg$" $CACHE/recook-packages; then 1.20 + show_note i "The package “$pkg” has been requested for recook" 1.21 + else 1.22 + echo "<a class='button' href='$base/?recook=${pkg//+/%2B}'>Recook $pkg</a>" 1.23 fi 1.24 - ;; 1.25 - esac 1.26 - fi 1.27 + fi 1.28 + ;; 1.29 + esac 1.30 ;; 1.31 1.32 receipt)