From: Zac Medico Date: Fri, 17 Nov 2006 14:59:21 +0000 (-0000) Subject: Make fixpackages use PORTAGE_NICENESS. X-Git-Tag: v2.1.2~450 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3e43fc1c7f3c7e3258dc5672201150b6661c56db;p=portage.git Make fixpackages use PORTAGE_NICENESS. svn path=/main/trunk/; revision=5073 --- 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