diff options
author | fuzzyray <fuzzyray@gentoo.org> | 2009-12-17 15:36:54 +0000 |
---|---|---|
committer | fuzzyray <fuzzyray@gentoo.org> | 2009-12-17 15:36:54 +0000 |
commit | b7263e2ae68e2883d772cf5c23451792af4a5ada (patch) | |
tree | 7f1f99518a6bc61f5935a54290fcc343c7579490 /bin/revdep-rebuild | |
parent | Replace epkginfo with 'equery meta'. The original script is available in the ... (diff) | |
download | gentoolkit-b7263e2ae68e2883d772cf5c23451792af4a5ada.tar.gz gentoolkit-b7263e2ae68e2883d772cf5c23451792af4a5ada.tar.bz2 gentoolkit-b7263e2ae68e2883d772cf5c23451792af4a5ada.zip |
Fix revdep-rebuild to properly honor PORTAGE_NICENESS as an incremental to the current nice level. (Bug 297174)
svn path=/trunk/gentoolkit/; revision=724
Diffstat (limited to 'bin/revdep-rebuild')
-rwxr-xr-x | bin/revdep-rebuild | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/revdep-rebuild b/bin/revdep-rebuild index d32e4e1..9027a58 100755 --- a/bin/revdep-rebuild +++ b/bin/revdep-rebuild @@ -1014,8 +1014,10 @@ portage_settings() { ## # Setup portage and the search paths setup_portage() { - # 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. |