For bug #176384, adjust config according to options of the command being resumed.
authorZac Medico <zmedico@gentoo.org>
Sat, 28 Apr 2007 19:14:41 +0000 (19:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 28 Apr 2007 19:14:41 +0000 (19:14 -0000)
svn path=/main/trunk/; revision=6454

pym/emerge/__init__.py

index 7ca5ece18260a5c5d3dc7a4d56052ad68260d10c..ed086fb744f044aa32a2106ed16dab3e267fbd00 100644 (file)
@@ -4868,6 +4868,15 @@ def action_build(settings, trees, mtimedb,
                        if myopt not in myresumeopts:
                                myresumeopts[myopt] = myarg
                myopts=myresumeopts
+
+               # Adjust config according to options of the command being resumed.
+               for myroot in trees:
+                       mysettings =  trees[myroot]["vartree"].settings
+                       mysettings.unlock()
+                       adjust_config(myopts, mysettings)
+                       mysettings.lock()
+                       del myroot, mysettings
+
                myparams = create_depgraph_params(myopts, myaction)
                if "--quiet" not in myopts and "--nodeps" not in myopts:
                        print "Calculating dependencies  ",