--- /usr/bin/revdep-rebuild 2007-07-28 16:59:06.000000000 -0400 +++ /usr/bin/revdep-rebuild.rmmarm 2007-07-28 18:52:54.000000000 -0400 @@ -163,8 +163,10 @@ else progress() { (( $1 == $2 )) && local lb=$'\n' - echo -ne '\r \r' - echo -n "[ $(( $1 * 100 / $2 ))% ] $lb" + new=$(( $1 * 100 / $2 )) + (( $new != $old )) && echo -ne '\r \r' + (( $new != $old )) && echo -n "[ $new% ] $lb" + old=$new } progress $@ fi @@ -304,6 +306,7 @@ ]] get_args "$@" +old=0 # Use the color preference from portage export NOCOLOR=$(portageq envvar NOCOLOR) [[ $NOCOLOR = yes || $NOCOLOR = true ]] && export RC_NOCOLOR=yes # HACK! (grr)