Remove unnecessary sync in Scheduler.py.
authorDavid James <davidjames@google.com>
Mon, 11 Apr 2011 19:00:39 +0000 (12:00 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 13 Apr 2011 07:50:17 +0000 (00:50 -0700)
If we are passed a fakevartree object, it should already be sync'd, so
there is no need to sync it again here. This sync is only needed when
we create a new FakeVartree, so I moved the sync to the right place to
fix this.

BUG=chromium-os:14035
TEST=Build a bunch of packages with this patch.

Change-Id: I89d79cf946f4c0c27ad585ad7c88a41985260342

Review URL: http://codereview.chromium.org/6813084

pym/_emerge/Scheduler.py

index c9b7c9fad53e3365e1612ff29ec62128d07f773f..abb4accb8f28d07d0c38980189c6fae21a6133c4 100644 (file)
@@ -323,9 +323,9 @@ class Scheduler(PollScheduler):
                        if graph_config is None:
                                fake_vartree = FakeVartree(self.trees[root]["root_config"],
                                        pkg_cache=self._pkg_cache)
+                               fake_vartree.sync()
                        else:
                                fake_vartree = graph_config.trees[root]['vartree']
-                       fake_vartree.sync()
                        self._blocker_db[root] = BlockerDB(fake_vartree)
 
        def _destroy_graph(self):