Recycle the portdbapi instance at the and of global_updates().
authorZac Medico <zmedico@gentoo.org>
Sat, 1 Jul 2006 04:34:50 +0000 (04:34 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 1 Jul 2006 04:34:50 +0000 (04:34 -0000)
svn path=/main/trunk/; revision=3725

pym/portage.py

index 2e7ff8656ec83f70db3ca05b44bf5381dff12fd6..13c89ddf53d427230cfbc688d882ffc6249ee012 100644 (file)
@@ -7060,7 +7060,8 @@ def global_updates(mysettings, trees, prev_mtimes):
                print
 
                #make sure our internal databases are consistent; recreate our virts and vartree
-               do_vartree(mysettings, trees=trees)
+               do_vartree(
+                       mysettings, portdb=trees["/"]["porttree"].dbapi, trees=trees)
                if do_upgrade_packagesmessage and \
                        listdir(os.path.join(mysettings["PKGDIR"], "All"), EmptyOnError=1):
                        writemsg_stdout(" ** Skipping packages. Run 'fixpackages' or set it in FEATURES to fix the")