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

bin/emerge

index d499eb7db9fcdfabd0525d8367df468ade445a66..3af575601a666da228d4a1ae66269773f28952a6 100755 (executable)
@@ -2600,7 +2600,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],
@@ -2617,8 +2617,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