summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-09-07 07:05:26 +0000
committerZac Medico <zmedico@gentoo.org>2006-09-07 07:05:26 +0000
commit3c79ceee9860655e4c044fd66def1d7b34595194 (patch)
treee0d919431f82f445aee77f77f6f66964f1f7e5c3
parent5a10c3d351dbd92668d88afa9bd4bac24490b45d (diff)
downloadportage-3c79ceee9860655e4c044fd66def1d7b34595194.tar.gz
portage-3c79ceee9860655e4c044fd66def1d7b34595194.tar.bz2
portage-3c79ceee9860655e4c044fd66def1d7b34595194.zip
Make quickpkg respect PORTAGE_NICENESS.
svn path=/main/trunk/; revision=4424
-rwxr-xr-xbin/quickpkg2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/quickpkg b/bin/quickpkg
index e6bf9167b..1153fba8a 100755
--- a/bin/quickpkg
+++ b/bin/quickpkg
@@ -21,6 +21,8 @@ eval $(portageq envvar -v NOCOLOR PKGDIR PORTAGE_BIN_PATH PORTAGE_NICENESS \
PORTAGE_PYM_PATH PORTAGE_TMPDIR ROOT)
export PKGDIR PORTAGE_TMPDIR ROOT
+[ -n "${PORTAGE_NICENESS}" ] && renice $PORTAGE_NICENESS $$ > /dev/null
+
# Make sure the xpak module is in PYTHONPATH
export PYTHONPATH=${PORTAGE_PYM_PATH}
export PORTAGE_DB=$(portageq vdb_path)