summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-05-22 20:42:22 +0000
committerZac Medico <zmedico@gentoo.org>2007-05-22 20:42:22 +0000
commita09487b757099ab74b38390c2be19b6e6bd3d965 (patch)
tree855dca0fc8fd2cf53e4f2d6dd9fb100f6ec0e9c9
parent8805e5544cbd9dd658a2ac89297983126e7a1d45 (diff)
downloadportage-a09487b757099ab74b38390c2be19b6e6bd3d965.tar.gz
portage-a09487b757099ab74b38390c2be19b6e6bd3d965.tar.bz2
portage-a09487b757099ab74b38390c2be19b6e6bd3d965.zip
Punt the portdbapi.getsize() function since it's unused and broken (mysum referenced before assignment).
svn path=/main/trunk/; revision=6582
-rw-r--r--pym/portage/dbapi/porttree.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 16e962a85..77aa39e7a 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -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("/")