Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 186945 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/bin/revdep-rebuild (-2 / +5 lines)
Lines 163-170 Link Here
163
	else
163
	else
164
		progress() {
164
		progress() {
165
			(( $1 == $2 )) && local lb=$'\n'
165
			(( $1 == $2 )) && local lb=$'\n'
166
			echo -ne '\r                         \r'
166
         new=$(( $1 * 100 / $2 ))
167
			echo -n "[ $(( $1 * 100 / $2 ))% ] $lb"
167
			(( $new != $old )) && echo -ne '\r                         \r'
168
         (( $new != $old )) && echo -n "[ $new% ] $lb"
169
         old=$new
168
		}
170
		}
169
		progress $@
171
		progress $@
170
	fi
172
	fi
Lines 304-309 Link Here
304
]]
306
]]
305
307
306
get_args "$@"
308
get_args "$@"
309
old=0
307
# Use the color preference from portage
310
# Use the color preference from portage
308
export NOCOLOR=$(portageq envvar NOCOLOR)
311
export NOCOLOR=$(portageq envvar NOCOLOR)
309
[[ $NOCOLOR = yes || $NOCOLOR = true ]] && export RC_NOCOLOR=yes # HACK! (grr)
312
[[ $NOCOLOR = yes || $NOCOLOR = true ]] && export RC_NOCOLOR=yes # HACK! (grr)

Return to bug 186945