+2009-12-17: Paul Varner <fuzzyray@gentoo.org>
+ * revdep-rebuild: Fix revdep-rebuild to properly honor
+ PORTAGE_NICENESS as an incremental to the current nice level. (Bug
+ 297174).
+
2009-04-30: Paul Varner <fuzzyray@gentoo.org>
* revdep-rebuild: Add patch from loki_val to check -l dependencies in
.la files (Bug #267898)
##
# Setup portage and the search paths
setup_portage() {
- local PORTAGE_NICENESS=$(portageq envvar PORTAGE_NICENESS)
+ PORTAGE_NICENESS=$(portageq envvar PORTAGE_NICENESS)
PORTAGE_ROOT=$(portageq envvar ROOT)
- # Obey PORTAGE_NICENESS
+ # Obey PORTAGE_NICENESS (which is incremental to the current nice value)
if [[ $PORTAGE_NICENESS ]]; then
+ current_niceness=$(nice)
+ let PORTAGE_NICENESS=${current_niceness}+${PORTAGE_NICENESS}
renice $PORTAGE_NICENESS $$ > /dev/null
# Since we have already set our nice value for our processes,
# reset PORTAGE_NICENESS to zero to avoid having emerge renice again.