cookutils rev 851

cooker.cgi: browse cooking only
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 19 09:38:36 2016 +0100 (2016-12-19)
parents 9e21916774fb
children abae537cdde9
files web/cooker.cgi
line diff
     1.1 --- a/web/cooker.cgi	Mon Dec 19 05:42:15 2016 +0200
     1.2 +++ b/web/cooker.cgi	Mon Dec 19 09:38:36 2016 +0100
     1.3 @@ -329,6 +329,7 @@
     1.4  			   [ -d $wok/$bpkg/taz/*/fs/usr/share/info ]; then
     1.5  				echo "<a href='?info=$bpkg'>info</a>"
     1.6  			fi
     1.7 +			[ -n "${REQUEST_URI%$SCRIPT_NAME*}" ] || 
     1.8  			echo "<a href='ftp://${HTTP_HOST%:*}/$pkg/'>browse</a>"
     1.9  		else
    1.10  			if [ $(ls $wok/*$pkg*/receipt 2> /dev/null | wc -l) -eq 0 ]; then