# HG changeset patch # User Pascal Bellard # Date 1467539095 -7200 # Node ID 05a7f4f6140991d489f723e6b9110b806ca8430d # Parent eb765a8c3872763c4118efc5659ae92914476b79 cooker.cgi: fix package search diff -r eb765a8c3872 -r 05a7f4f61409 web/cooker.cgi --- a/web/cooker.cgi Sun Jul 03 11:30:30 2016 +0200 +++ b/web/cooker.cgi Sun Jul 03 11:44:55 2016 +0200 @@ -223,12 +223,14 @@ echo "

Package: $pkg

" # Define cook variables for syntax highlighter - . "$WOK/$pkg/receipt" - _wok='/home/slitaz/wok' - _src="$_wok/$pkg/source/$PACKAGE-$VERSION" - _install="$_wok/$pkg/install" - _fs="$_wok/$pkg/taz/$PACKAGE-$VERSION/fs" - _stuff="$_wok/$pkg/stuff" + if [ -s "$WOK/$pkg/receipt" ]; then + . "$WOK/$pkg/receipt" + _wok='/home/slitaz/wok' + _src="$_wok/$pkg/source/$PACKAGE-$VERSION" + _install="$_wok/$pkg/install" + _fs="$_wok/$pkg/taz/$PACKAGE-$VERSION/fs" + _stuff="$_wok/$pkg/stuff" + fi # Package info. echo '
'