Combine --nodeps spinner logic. (trunk r9953)
authorZac Medico <zmedico@gentoo.org>
Thu, 24 Apr 2008 03:37:44 +0000 (03:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 24 Apr 2008 03:37:44 +0000 (03:37 -0000)
svn path=/main/branches/2.1.2/; revision=9958

bin/emerge

index ee6edf736afb29f64fccd9e79066bf799654d7e8..983ff503462dc403a5d3893ce5d2c83c81284d51 100755 (executable)
@@ -1730,8 +1730,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.
@@ -7350,6 +7348,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):
@@ -7373,9 +7375,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)