+2006-02-06 Paul Varner <fuzzyray@gentoo.org>
+ * revdep-rebuild: Reset PORTAGE_NICENESS, so that emerge is not niced
+ twice. Thanks to Lukas Reck for the patch. (Bug 121482)
+
2006-01-24 Marius Mauch <genone@gentoo.org>
* glsa-check: Use vbd information in verbose list mode (patch by solar)
# Obey PORTAGE_NICENESS
PORTAGE_NICENESS=$(portageq envvar PORTAGE_NICENESS)
-[ ! -z "$PORTAGE_NICENESS" ] && renice $PORTAGE_NICENESS $$ > /dev/null
+if [ ! -z "$PORTAGE_NICENESS" ]
+then
+ 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.
+ export PORTAGE_NICENESS="0"
+fi
PORTAGE_ROOT=$(portageq envvar ROOT)
[ -z "$PORTAGE_ROOT" ] && PORTAGE_ROOT="/"