Pass parameters into env_update() so that it doesn't depend on global variables.
authorZac Medico <zmedico@gentoo.org>
Fri, 30 Jun 2006 02:12:50 +0000 (02:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 30 Jun 2006 02:12:50 +0000 (02:12 -0000)
svn path=/main/trunk/; revision=3699

bin/emerge

index c784ee5feece3f5ae6bfcb58be1e2bb4a1b8ff30..d176bbbcf5c9b192449482d51ab58aada08ca5c5 100755 (executable)
@@ -2035,7 +2035,9 @@ class depgraph:
                                "--fetch-all-uri" not in self.myopts:
                                if (mergecount>0):
                                        if retval:
-                                               portage.env_update()
+                                               portage.env_update(
+                                                       target_root=self.settings["ROOT"],
+                                                       prev_mtimes=ldpath_mtimes)
 
                #by doing an exit this way, --fetchonly can continue to try to
                #fetch everything even if a particular download fails.
@@ -2115,6 +2117,7 @@ def unmerge(settings, myopts, vartree, unmerge_action, unmerge_files,
        candidate_catpkgs=[]
        global_unmerge=0
        xterm_titles = "notitles" not in settings.features
+       ldpath_mtimes = portage.mtimedb["ldpath"]
 
        realsyslist = getlist(settings, "system")
        syslist = []
@@ -2350,7 +2353,9 @@ def unmerge(settings, myopts, vartree, unmerge_action, unmerge_files,
                        else:
                                emergelog(xterm_titles, " >>> unmerge success: "+y)
        #run ldconfig, etc...
-       portage.env_update()
+       portage.env_update(
+               target_root=settings["ROOT"],
+               prev_mtimes=ldpath_mtimes)
        if not numselected:
                return 0
        else: