summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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