cookutils rev 226
cook: display time for pkglist
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 26 22:11:24 2011 +0200 (2011-05-26) |
parents | 0d02e63da3c2 |
children | 5e9d0bdd4830 |
files | cook |
line diff
1.1 --- a/cook Thu May 26 18:31:28 2011 +0200 1.2 +++ b/cook Thu May 26 22:11:24 2011 +0200 1.3 @@ -856,10 +856,12 @@ 1.4 [ "$2" ] && PKGS="$2" 1.5 [ ! -d "$PKGS" ] && \ 1.6 gettext -e "\nPackages directory doesn't exist\n\n" && exit 1 1.7 + time=$(date +%s) 1.8 echo "cook:pkglist" > $command 1.9 echo "Cook pkglist: Creating all packages lists" | log 1.10 gettext -e "\nCreating lists for:"; echo " $PKGS" 1.11 separator 1.12 + gettext "Cook pkglist tarted at: "; date "+%H:%M" 1.13 cd $PKGS 1.14 rm -f packages.* 1.15 gettext "Creating: packages.list " 1.16 @@ -922,7 +924,8 @@ 1.17 1.18 separator 1.19 nb=$(ls $PKGS/*.tazpkg | wc -l) 1.20 - echo -e "Packages: $nb\n" 1.21 + time=$(($(date +%s) - $time)) 1.22 + echo -e "Packages: $nb - Time: $time\n" 1.23 rm -f $command ;; 1.24 *) 1.25 # Just cook and generate a package.