From: fuzzyray Date: Tue, 7 Feb 2006 04:36:33 +0000 (-0000) Subject: Fix for PORTAGE_NICENESS X-Git-Tag: gentoolkit-0.2.4.3~237 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4588220e92b26cebd3f316e1364abcb8b3364698;p=gentoolkit.git Fix for PORTAGE_NICENESS svn path=/; revision=276 --- diff --git a/trunk/ChangeLog b/trunk/ChangeLog index fd8884a..b200f11 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,3 +1,7 @@ +2006-02-06 Paul Varner + * 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 * glsa-check: Use vbd information in verbose list mode (patch by solar) diff --git a/trunk/src/revdep-rebuild/revdep-rebuild b/trunk/src/revdep-rebuild/revdep-rebuild index d6bd69a..2f35e3d 100755 --- a/trunk/src/revdep-rebuild/revdep-rebuild +++ b/trunk/src/revdep-rebuild/revdep-rebuild @@ -56,7 +56,13 @@ echo "Configuring search environment for revdep-rebuild" # 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="/"