From: Zac Medico Date: Thu, 24 Apr 2008 02:31:09 +0000 (-0000) Subject: Combine --nodeps spinner logic. X-Git-Tag: v2.2_pre6~125 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7bf09a0a02c91573f340b3322143db77adc43f6e;p=portage.git Combine --nodeps spinner logic. svn path=/main/trunk/; revision=9953 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index e7b5f6878..dd80a1679 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -1591,8 +1591,6 @@ class depgraph(object): self.edebug = 0 if settings.get("PORTAGE_DEBUG", "") == "1": self.edebug = 1 - if "--nodeps" in myopts: - spinner.update = spinner.update_quiet self.spinner = spinner self.pkgsettings = {} # Maps slot atom to package for each Package added to the graph. @@ -7326,6 +7324,10 @@ def action_build(settings, trees, mtimedb, else: del mtimedb[k] + show_spinner = "--quiet" not in myopts and "--nodeps" not in myopts + if not show_spinner: + spinner.update = spinner.update_quiet + if "--resume" in myopts and \ ("resume" in mtimedb or "resume_backup" in mtimedb): @@ -7349,9 +7351,6 @@ def action_build(settings, trees, mtimedb, for opt in ("--skipfirst", "--ask", "--tree"): resume_opts.pop(opt, None) myopts.update(resume_opts) - show_spinner = "--quiet" not in myopts and "--nodeps" not in myopts - if not show_spinner: - spinner.update = spinner.update_quiet if show_spinner: print "Calculating dependencies ", myparams = create_depgraph_params(myopts, myaction)