diff options
author | fuzzyray <fuzzyray@gentoo.org> | 2009-12-17 15:39:34 +0000 |
---|---|---|
committer | fuzzyray <fuzzyray@gentoo.org> | 2009-12-17 15:39:34 +0000 |
commit | adc2eea22e27ba332d0afa73059309fff38d6edb (patch) | |
tree | 5ad77bf5c21d243e161fbaa56cc6bac4da74ed93 /src/revdep-rebuild/revdep-rebuild | |
parent | Don't create /usr/sbin at install time, since we no longer put files there. (... (diff) | |
download | gentoolkit-adc2eea22e27ba332d0afa73059309fff38d6edb.tar.gz gentoolkit-adc2eea22e27ba332d0afa73059309fff38d6edb.tar.bz2 gentoolkit-adc2eea22e27ba332d0afa73059309fff38d6edb.zip |
Fix revdep-rebuild to properly honor PORTAGE_NICENESS as an incremental to the current nice level. (Bug 297174)
svn path=/branches/gentoolkit-0.2.4/; revision=725
Diffstat (limited to 'src/revdep-rebuild/revdep-rebuild')
-rwxr-xr-x | src/revdep-rebuild/revdep-rebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/revdep-rebuild/revdep-rebuild b/src/revdep-rebuild/revdep-rebuild index b44dadc..1dd10a9 100755 --- a/src/revdep-rebuild/revdep-rebuild +++ b/src/revdep-rebuild/revdep-rebuild @@ -967,11 +967,13 @@ show_unowned_files() { ## # 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. |