cookutils diff web/cooker.cgi @ rev 677

Treat all arch the same way (fix pkgs counting in web interface)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 30 00:34:48 2014 +0200 (2014-04-30)
parents b1b010c31c38
children f061dffa65bb
line diff
     1.1 --- a/web/cooker.cgi	Sun Feb 16 15:48:52 2014 +0100
     1.2 +++ b/web/cooker.cgi	Wed Apr 30 00:34:48 2014 +0200
     1.3 @@ -301,11 +301,7 @@
     1.4  		fi
     1.5  		# Main page with summary. Count only package include in ARCH,
     1.6  		# use 'cooker arch' to manually create arch.$ARCH files.
     1.7 -		# We may have arm only packages, use arch.i486 ?
     1.8 -		case "$ARCH" in
     1.9 -			arm|x86_64) inwok=$(ls $WOK/*/arch.$ARCH | wc -l) ;;
    1.10 -			*) inwok=$(ls $WOK | wc -l) ;;
    1.11 -		esac
    1.12 +		inwok=$(ls $WOK | wc -l)
    1.13  		cooked=$(ls $PKGS/*.tazpkg | wc -l)
    1.14  		unbuilt=$(($inwok - $cooked))
    1.15  		pct=0