summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-11-17 14:59:21 +0000
committerZac Medico <zmedico@gentoo.org>2006-11-17 14:59:21 +0000
commit3e43fc1c7f3c7e3258dc5672201150b6661c56db (patch)
tree67f8116fc195b2a3b16fa439d866837b9ac399c0
parent32bb8422116c90d1c9a67c25d8917472a03fdd69 (diff)
downloadportage-3e43fc1c7f3c7e3258dc5672201150b6661c56db.tar.gz
portage-3e43fc1c7f3c7e3258dc5672201150b6661c56db.tar.bz2
portage-3e43fc1c7f3c7e3258dc5672201150b6661c56db.zip
Make fixpackages use PORTAGE_NICENESS.
svn path=/main/trunk/; revision=5073
-rwxr-xr-xbin/fixpackages8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/fixpackages b/bin/fixpackages
index f7c1bf51d..b7357f166 100755
--- a/bin/fixpackages
+++ b/bin/fixpackages
@@ -15,6 +15,14 @@ mysettings = portage.settings
mytrees = portage.db
mtimedb = portage.mtimedb
+try:
+ os.nice(int(mysettings.get("PORTAGE_NICENESS", "0")))
+except (OSError, ValueError), e:
+ portage.writemsg("!!! Failed to change nice value to '%s'\n" % \
+ settings["PORTAGE_NICENESS"])
+ portage.writemsg("!!! %s\n" % str(e))
+ del e
+
portage.global_updates(mysettings, mytrees, mtimedb["updates"])
print