summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-25 03:16:58 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-25 03:16:58 +0000
commitbb6313d8abaefd548e56ab46ca76841127e7371e (patch)
treed65c88e1cbead7101316a561c6b78c377e5040c0
parent14eb82e92c809a502ef3de800dc96968c3543fad (diff)
downloadportage-bb6313d8abaefd548e56ab46ca76841127e7371e.tar.gz
portage-bb6313d8abaefd548e56ab46ca76841127e7371e.tar.bz2
portage-bb6313d8abaefd548e56ab46ca76841127e7371e.zip
Add some more spinner.update() calls in possibly time consuming loops.
svn path=/main/trunk/; revision=9968
-rw-r--r--pym/_emerge/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 484f7c258..826e85096 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -1842,6 +1842,7 @@ class depgraph(object):
def _create_graph(self, allow_unsatisfied=False):
dep_stack = self._dep_stack
while dep_stack:
+ self.spinner.update()
dep = dep_stack.pop()
if isinstance(dep, Package):
if not self._add_pkg_deps(dep,
@@ -3121,6 +3122,7 @@ class depgraph(object):
del blocker_cache
for blocker in self.blocker_parents.keys():
+ self.spinner.update()
mytype, myroot, mydep = blocker
initial_db = self.trees[myroot]["vartree"].dbapi
final_db = self.mydbapi[myroot]
@@ -3294,6 +3296,7 @@ class depgraph(object):
for node in mygraph.root_nodes():
if not isinstance(node, Package) or \
node.installed or node.onlydeps:
+ self.spinner.update()
mygraph.remove(node)
removed_something = True
if not removed_something:
@@ -3372,6 +3375,7 @@ class depgraph(object):
# unresolved blockers or circular dependencies.
while not mygraph.empty():
+ self.spinner.update()
selected_nodes = None
ignore_priority = None
if prefer_asap and asap_nodes: