Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 44541
Collapse All | Expand All

(-)emerge.orig (-1 / +6 lines)
Lines 60-66 Link Here
60
60
61
if portage.settings.has_key("PORTAGE_NICENESS"):
61
if portage.settings.has_key("PORTAGE_NICENESS"):
62
	try:
62
	try:
63
		os.nice(int(portage.settings["PORTAGE_NICENESS"]))
63
		if "absnice" in portage.features:
64
			n = os.nice(0)
65
			niceness = int(portage.settings["PORTAGE_NICENESS"])
66
			os.nice( (n < 0 and  niceness + -n or niceness - n) )
67
		else:
68
			os.nice(int(portage.settings["PORTAGE_NICENESS"]))
64
	except Exception,e:
69
	except Exception,e:
65
		print "!!! Failed to change nice value to '"+str(portage.settings["PORTAGE_NICENESS"])+"'"
70
		print "!!! Failed to change nice value to '"+str(portage.settings["PORTAGE_NICENESS"])+"'"
66
		print "!!!",e
71
		print "!!!",e

Return to bug 44541