cookutils rev 45
cooker: add time stamp to debug info
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 07 04:04:37 2011 +0200 (2011-05-07) |
parents | 969f0ec4eeac |
children | 176385db9cdb |
files | cook |
line diff
1.1 --- a/cook Sat May 07 03:32:53 2011 +0200 1.2 +++ b/cook Sat May 07 04:04:37 2011 +0200 1.3 @@ -228,6 +228,7 @@ 1.4 debug_info() { 1.5 echo -e "\nDebug information" 1.6 separator 1.7 + echo "Cook date: $(date '+%Y-%M-%d %H:%M')" 1.8 for error in ERROR "No package" "cp: can't stat" "can't open" 1.9 do 1.10 fgrep "$error" $LOGS/$pkg.log 1.11 @@ -501,8 +502,8 @@ 1.12 rm -f $command && exit 1 1.13 fi 1.14 gettext "QA: Checking for empty package..." 1.15 - files=$(grep -q ^/ $pkgdir/taz/$pkg-*/files.list) 1.16 - if [ ! "$files" ] && [ "$CATEGORY" != "meta" ]; then 1.17 + files=$(cat $WOK/$pkg/taz/$pkg-*/files.list | wc -l) 1.18 + if [ "$files" -lt 0 ] && [ "$CATEGORY" != "meta" ]; then 1.19 echo -e "\nERROR: empty package" 1.20 rm -f $command && exit 1 1.21 else 1.22 @@ -669,8 +670,7 @@ 1.23 inst='yes' ;; 1.24 --getsrc) 1.25 echo "Getting source for: $pkg" 1.26 - separator 1.27 - . $WOK/$pkg/receipt && get_source 1.28 + separator && get_source 1.29 echo -e "Tarball: $SRC/$TARBALL\n" && exit 0 ;; 1.30 esac 1.31