Fix logic so display_problems() gets called every time display() does.
authorZac Medico <zmedico@gentoo.org>
Sat, 3 May 2008 19:39:49 +0000 (19:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 3 May 2008 19:39:49 +0000 (19:39 -0000)
svn path=/main/trunk/; revision=10136

pym/_emerge/__init__.py

index ae01ffd93e8cd398224a42ccabb50781cf87ddc2..eff3e6c11235319a4a8558e1c2fc9f05f52b20bb 100644 (file)
@@ -7775,7 +7775,6 @@ def action_build(settings, trees, mtimedb,
                        if show_spinner:
                                print "\b\b... done!"
 
-               if not success:
                        mydepgraph.display_problems()
 
                if not success:
@@ -7803,13 +7802,9 @@ def action_build(settings, trees, mtimedb,
                        return 1
                if show_spinner:
                        print "\b\b... done!"
+               mydepgraph.display_problems()
                if not retval:
-                       mydepgraph.display_problems()
                        return 1
-               display = pretend or \
-                       ((ask or tree or verbose) and not (quiet and not ask))
-               if not display:
-                       mydepgraph.display_problems()
 
        if "--pretend" not in myopts and \
                ("--ask" in myopts or "--tree" in myopts or \