Punt the portdbapi.getsize() function since it's unused and broken (mysum referenced...
authorZac Medico <zmedico@gentoo.org>
Wed, 23 May 2007 20:50:38 +0000 (20:50 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 23 May 2007 20:50:38 +0000 (20:50 -0000)
svn path=/main/branches/2.1.2/; revision=6607

pym/portage.py

index 759b501745c4d5669d9378895e62b6dec228b308..8fda7ba138174d9682a77cc1d9b3a1e441233917 100644 (file)
@@ -6028,19 +6028,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("/")