# HG changeset patch # User Christophe Lincoln # Date 1304733877 -7200 # Node ID 7fc260d77233292f7c96efbea56e7411efacc41f # Parent 969f0ec4eeac1e4dafe4bed27339fc362cb68d5c cooker: add time stamp to debug info diff -r 969f0ec4eeac -r 7fc260d77233 cook --- a/cook Sat May 07 03:32:53 2011 +0200 +++ b/cook Sat May 07 04:04:37 2011 +0200 @@ -228,6 +228,7 @@ debug_info() { echo -e "\nDebug information" separator + echo "Cook date: $(date '+%Y-%M-%d %H:%M')" for error in ERROR "No package" "cp: can't stat" "can't open" do fgrep "$error" $LOGS/$pkg.log @@ -501,8 +502,8 @@ rm -f $command && exit 1 fi gettext "QA: Checking for empty package..." - files=$(grep -q ^/ $pkgdir/taz/$pkg-*/files.list) - if [ ! "$files" ] && [ "$CATEGORY" != "meta" ]; then + files=$(cat $WOK/$pkg/taz/$pkg-*/files.list | wc -l) + if [ "$files" -lt 0 ] && [ "$CATEGORY" != "meta" ]; then echo -e "\nERROR: empty package" rm -f $command && exit 1 else @@ -669,8 +670,7 @@ inst='yes' ;; --getsrc) echo "Getting source for: $pkg" - separator - . $WOK/$pkg/receipt && get_source + separator && get_source echo -e "Tarball: $SRC/$TARBALL\n" && exit 0 ;; esac