summaryrefslogtreecommitdiff
path: root/trunk/src
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2006-02-07 04:36:33 +0000
committerfuzzyray <fuzzyray@gentoo.org>2006-02-07 04:36:33 +0000
commit4588220e92b26cebd3f316e1364abcb8b3364698 (patch)
treee0c5009bd3aeab69f1d9b53f32c135847259b107 /trunk/src
parentcf6b447f3b75a89892f457390adb70c5d14e5e75 (diff)
downloadgentoolkit-4588220e92b26cebd3f316e1364abcb8b3364698.tar.gz
Fix for PORTAGE_NICENESS
svn path=/; revision=276
Diffstat (limited to 'trunk/src')
-rwxr-xr-xtrunk/src/revdep-rebuild/revdep-rebuild8
1 files changed, 7 insertions, 1 deletions
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="/"