For bug #169620, in --tree display always show the dowload size on the node that...
authorZac Medico <zmedico@gentoo.org>
Tue, 6 Mar 2007 18:30:06 +0000 (18:30 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 6 Mar 2007 18:30:06 +0000 (18:30 -0000)
svn path=/main/trunk/; revision=6186

pym/emerge/__init__.py

index 1e2a625a8c7d3c93fc9fac0ea15cc87e64d3dea0..663a3a4329b0e82aa89ea8c2ae80c3ebe3a3ab0b 100644 (file)
@@ -2603,7 +2603,7 @@ class depgraph:
                                if verbosity == 3:
                                        # size verbose
                                        mysize=0
-                                       if x[0] == "ebuild" and x[-1]!="nomerge":
+                                       if x[0] == "ebuild" and ordered and x[-1] != "nomerge":
                                                try:
                                                        myfilesdict = portdb.getfetchsizes(pkg_key,
                                                                useflags=self.useFlags[myroot][pkg_key],
@@ -2620,8 +2620,7 @@ class depgraph:
                                                                if myfetchfile not in myfetchlist:
                                                                        mysize+=myfilesdict[myfetchfile]
                                                                        myfetchlist.append(myfetchfile)
-                                                       if ordered:
-                                                               counters.totalsize += mysize
+                                                       counters.totalsize += mysize
                                                verboseadd+=format_size(mysize)+" "
 
                                        # overlay verbose