Only adjust priority for PORTAGE_NICENESS on the first run for bug #132739.
authorZac Medico <zmedico@gentoo.org>
Wed, 10 May 2006 00:31:53 +0000 (00:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 10 May 2006 00:31:53 +0000 (00:31 -0000)
svn path=/main/trunk/; revision=3336

bin/emerge

index 9cb7aa3c082f0d260fa30cd7cf384836a3c9d338..bec97834114a9492b44fa105f7889d88fd1b7d03 100755 (executable)
@@ -2095,6 +2095,8 @@ class depgraph:
                                                                        if arg in badlongopts:
                                                                                continue
                                                                        mynewargv.append(arg)
+                                                               # priority only needs to be adjusted on the first run
+                                                               os.environ["PORTAGE_NICENESS"] = "0"
                                                                os.execv(mynewargv[0], mynewargv)
 
                        if ("--pretend" not in myopts) and ("--fetchonly" not in myopts) and ("--fetch-all-uri" not in myopts):