# HG changeset patch # User Antoine Bodin # Date 1296447839 -3600 # Node ID 80a7e1f31feeff9526001b3700effb826875a1ed # Parent 86b617f57d3be5d66273f84c66f778fa7dccd861 Allow to skip scan when push incomings diff -r 86b617f57d3b -r 80a7e1f31fee tazwok --- a/tazwok Mon Jan 31 04:54:11 2011 +0100 +++ b/tazwok Mon Jan 31 05:23:59 2011 +0100 @@ -1651,15 +1651,17 @@ $(cat $PACKAGES_REPOSITORY/cooklist)" >&2 return fi - rm -f $WOK/*/md5 - pkg="$({ grep ^[a-zA-Z0-9] $PACKAGES_REPOSITORY/packages.txt - grep ^[a-zA-Z0-9] $INCOMING_REPOSITORY/packages.txt - } | sort -u)" - cooklist=$PACKAGES_REPOSITORY/cooklist - gen_cook_list - if [ -s $PACKAGES_REPOSITORY/cooklist ]; then - echo "Don't move incoming packages to main repository because some of them need to be cooked." >&2 - return + if ! [ "$forced" ]; then + rm -f $WOK/*/md5 + pkg="$({ grep ^[a-zA-Z0-9] $PACKAGES_REPOSITORY/packages.txt + grep ^[a-zA-Z0-9] $INCOMING_REPOSITORY/packages.txt + } | sort -u)" + cooklist=$PACKAGES_REPOSITORY/cooklist + gen_cook_list + if [ -s $PACKAGES_REPOSITORY/cooklist ]; then + echo "Don't move incoming packages to main repository because some of them need to be cooked." >&2 + return + fi fi report step "Moving incoming packages to main repository" unset EXTRAVERSION @@ -2673,6 +2675,7 @@ ;; check-incoming) check_root + get_options_list="forced" get_tazwok_config source_lib report report start