tazwok rev 214

Allow to skip scan when push incomings
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Jan 31 05:23:59 2011 +0100 (2011-01-31)
parents 86b617f57d3b
children 28da3f5e59f7
files tazwok
line diff
     1.1 --- a/tazwok	Mon Jan 31 04:54:11 2011 +0100
     1.2 +++ b/tazwok	Mon Jan 31 05:23:59 2011 +0100
     1.3 @@ -1651,15 +1651,17 @@
     1.4  		$(cat $PACKAGES_REPOSITORY/cooklist)" >&2
     1.5  		return
     1.6  	fi
     1.7 -	rm -f $WOK/*/md5
     1.8 -	pkg="$({ grep ^[a-zA-Z0-9] $PACKAGES_REPOSITORY/packages.txt
     1.9 -		grep ^[a-zA-Z0-9] $INCOMING_REPOSITORY/packages.txt
    1.10 -		} | sort -u)"
    1.11 -	cooklist=$PACKAGES_REPOSITORY/cooklist
    1.12 -	gen_cook_list
    1.13 -	if [ -s $PACKAGES_REPOSITORY/cooklist ]; then
    1.14 -		echo "Don't move incoming packages to main repository because some of them need to be cooked." >&2
    1.15 -		return
    1.16 +	if ! [ "$forced" ]; then
    1.17 +		rm -f $WOK/*/md5
    1.18 +		pkg="$({ grep ^[a-zA-Z0-9] $PACKAGES_REPOSITORY/packages.txt
    1.19 +			grep ^[a-zA-Z0-9] $INCOMING_REPOSITORY/packages.txt
    1.20 +			} | sort -u)"
    1.21 +		cooklist=$PACKAGES_REPOSITORY/cooklist
    1.22 +		gen_cook_list
    1.23 +		if [ -s $PACKAGES_REPOSITORY/cooklist ]; then
    1.24 +			echo "Don't move incoming packages to main repository because some of them need to be cooked." >&2
    1.25 +			return
    1.26 +		fi
    1.27  	fi
    1.28  	report step "Moving incoming packages to main repository"
    1.29  	unset EXTRAVERSION
    1.30 @@ -2673,6 +2675,7 @@
    1.31  	;;
    1.32  	check-incoming)
    1.33  		check_root
    1.34 +		get_options_list="forced"
    1.35  		get_tazwok_config
    1.36  		source_lib report
    1.37  		report start