From b32efe2d1eb1a9a7c52f3ec18abd3d5db4ab8767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 8 Jul 2010 11:06:28 +0200 Subject: Limit repository-wide dbentry updates. Update dbentries only when the repository the package comes from matches the repository update comes from. --- pym/portage/_global_updates.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/portage/_global_updates.py') diff --git a/pym/portage/_global_updates.py b/pym/portage/_global_updates.py index a63e68af9..b287654c0 100644 --- a/pym/portage/_global_updates.py +++ b/pym/portage/_global_updates.py @@ -154,12 +154,12 @@ def _global_updates(trees, prev_mtimes): def onUpdate(maxval, curval): if curval > 0: writemsg_stdout("#") - vardb.update_ents(myupd, onUpdate=onUpdate) + vardb.update_ents(myupd, onUpdate=onUpdate, repo=repo_name) if bindb: def onUpdate(maxval, curval): if curval > 0: writemsg_stdout("*") - bindb.update_ents(myupd, onUpdate=onUpdate) + bindb.update_ents(myupd, onUpdate=onUpdate, repo=repo_name) else: do_upgrade_packagesmessage = 1 -- cgit v1.2.3-1-g7c22