diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2006-02-07 04:36:33 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2006-02-07 04:36:33 +0000 |
| commit | 4588220e92b26cebd3f316e1364abcb8b3364698 (patch) | |
| tree | e0c5009bd3aeab69f1d9b53f32c135847259b107 | |
| parent | cf6b447f3b75a89892f457390adb70c5d14e5e75 (diff) | |
| download | gentoolkit-4588220e92b26cebd3f316e1364abcb8b3364698.tar.gz | |
Fix for PORTAGE_NICENESS
svn path=/; revision=276
| -rw-r--r-- | trunk/ChangeLog | 4 | ||||
| -rwxr-xr-x | trunk/src/revdep-rebuild/revdep-rebuild | 8 |
2 files changed, 11 insertions, 1 deletions
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 <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) 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="/" |
