From 84ca6b64a0244720e8fe9986ef6f92d668be35f1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 28 Feb 2010 03:05:44 +0000 Subject: Make _global_updates ensure that the binarytree is only populated with local packages (getbinpkgs=0), and fix binarytree.populate() to behave properly when called more than once. svn path=/main/trunk/; revision=15487 --- pym/portage/_global_updates.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pym/portage/_global_updates.py') diff --git a/pym/portage/_global_updates.py b/pym/portage/_global_updates.py index baf2e9b72..040de276a 100644 --- a/pym/portage/_global_updates.py +++ b/pym/portage/_global_updates.py @@ -94,6 +94,10 @@ def _global_updates(trees, prev_mtimes): bindb = trees["/"]["bintree"].dbapi if not os.access(bindb.bintree.pkgdir, os.W_OK): bindb = None + else: + # Call binarytree.populate(), since we want to make sure it's + # only populated with local packages here (getbinpkgs=0). + bindb.bintree.populate() for update_cmd in myupd: if update_cmd[0] == "move": moves = vardb.move_ent(update_cmd) -- cgit v1.2.3-1-g7c22