Punt the portdbapi.getsize() function since it's unused and broken (mysum referenced...
authorZac Medico <zmedico@gentoo.org>
Tue, 22 May 2007 20:42:22 +0000 (20:42 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 22 May 2007 20:42:22 +0000 (20:42 -0000)
svn path=/main/trunk/; revision=6582

pym/portage/dbapi/porttree.py

index 16e962a85de14bf74eed14dabd853ce4f2059290..77aa39e7a47f7e7ea8bee310bc12228ca371572d 100644 (file)
@@ -441,19 +441,6 @@ class portdbapi(dbapi):
                        return False
                return True
 
-       def getsize(self, mypkg, useflags=None, debug=0):
-               # returns the total size of remaining downloads
-               #
-               # we use getfetchsizes() now, so this function would be obsoleted
-               #
-               filesdict = self.getfetchsizes(mypkg, useflags=useflags, debug=debug)
-               if filesdict is None:
-                       return "[empty/missing/bad digest]"
-               mysize=0
-               for myfile in filesdict.keys():
-                       mysum += filesdict[myfile]
-               return mysum
-
        def cpv_exists(self, mykey):
                "Tells us whether an actual ebuild exists on disk (no masking)"
                cps2 = mykey.split("/")