From 3e43fc1c7f3c7e3258dc5672201150b6661c56db Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 17 Nov 2006 14:59:21 +0000 Subject: [PATCH] Make fixpackages use PORTAGE_NICENESS. svn path=/main/trunk/; revision=5073 --- bin/fixpackages | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.26.2