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

Collapse All | Expand All

(-)revdep-rebuild-rewrite.orig (-4 / +8 lines)
Lines 141-146 Link Here
141
  -i, --ignore         Ignore temporary files from previous runs
141
  -i, --ignore         Ignore temporary files from previous runs
142
  -o, --no-order       Do not check the build order
142
  -o, --no-order       Do not check the build order
143
                       (Saves time, but may cause breakage.)
143
                       (Saves time, but may cause breakage.)
144
  -P, --no-progress    Turn off the progress meter
144
  -q, --quiet          Be less verbose (also passed to emerge command)
145
  -q, --quiet          Be less verbose (also passed to emerge command)
145
  -v, --verbose        Be more verbose
146
  -v, --verbose        Be more verbose
146
  -u, --no-util UTIL   Do not use features provided by UTIL
147
  -u, --no-util UTIL   Do not use features provided by UTIL
Lines 159-167 Link Here
159
#        i: current item
160
#        i: current item
160
#        n: total number of items to process
161
#        n: total number of items to process
161
progress() {
162
progress() {
162
	if [[ $quiet ]]; then
163
	if [[ -t 1 ]]; then
163
		progress() { :; }
164
	else
165
		progress() {
164
		progress() {
166
			local curProg=$(( $1 * 100 / $2 ))
165
			local curProg=$(( $1 * 100 / $2 ))
167
			(( curProg == OLDPROG )) && return # no change, output nothing
166
			(( curProg == OLDPROG )) && return # no change, output nothing
Lines 170-175 Link Here
170
			echo -ne '\r                         \r'"[ $curProg% ] $lb"
169
			echo -ne '\r                         \r'"[ $curProg% ] $lb"
171
		}
170
		}
172
		progress $@
171
		progress $@
172
	else # STDOUT is not a tty. Disable progress meter.
173
		progress() { :; }
173
	fi
174
	fi
174
}
175
}
175
# Usage: countdown n
176
# Usage: countdown n
Lines 229-236 Link Here
229
		-o|--no-order)
230
		-o|--no-order)
230
			unset ORDER_PKGS
231
			unset ORDER_PKGS
231
			;;
232
			;;
233
		-P|--no-progress)
234
			progress() { :; }
232
		-q|--quiet)
235
		-q|--quiet)
233
			echo_v() { : ; }
236
			echo_v() { :; }
237
			progress() { :; }
234
			quiet=1
238
			quiet=1
235
			EMERGE_OPTIONS+=($1)
239
			EMERGE_OPTIONS+=($1)
236
			;;
240
			;;

Return to bug 184042