diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-05-23 20:50:38 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-05-23 20:50:38 +0000 |
commit | a6f70b667d6040017ce3bd1362b41187aa38d7d1 (patch) | |
tree | 8efae6fad408efff6cd49951bf0c97220b404761 /pym | |
parent | 8323ada354df804d026de402d8d82e32e0be6357 (diff) | |
download | portage-a6f70b667d6040017ce3bd1362b41187aa38d7d1.tar.gz portage-a6f70b667d6040017ce3bd1362b41187aa38d7d1.tar.bz2 portage-a6f70b667d6040017ce3bd1362b41187aa38d7d1.zip |
Punt the portdbapi.getsize() function since it's unused and broken (mysum referenced before assignment). (trunk r6582)
svn path=/main/branches/2.1.2/; revision=6607
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/pym/portage.py b/pym/portage.py index 759b50174..8fda7ba13 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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("/") |