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 | |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | src/revdep-rebuild/revdep-rebuild | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2009-12-17: Paul Varner <fuzzyray@gentoo.org> + * revdep-rebuild: Fix revdep-rebuild to properly honor + PORTAGE_NICENESS as an incremental to the current nice level. (Bug + 297174). + 2009-04-30: Paul Varner <fuzzyray@gentoo.org> * revdep-rebuild: Add patch from loki_val to check -l dependencies in .la files (Bug #267898) 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. |