From: Zac Medico Date: Tue, 2 Mar 2010 20:32:33 +0000 (-0000) Subject: Remove deprecated portdbapi.getfetchlist() method. (trunk r15377) X-Git-Tag: v2.1.8~118 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d411461b7fe5c68d11f38a71936bd0801a380af7;p=portage.git Remove deprecated portdbapi.getfetchlist() method. (trunk r15377) svn path=/main/branches/2.1.7/; revision=15604 --- diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 6012cd414..830cef4a5 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -793,30 +793,6 @@ class portdbapi(dbapi): return uri_map - def getfetchlist(self, mypkg, useflags=None, mysettings=None, - all=0, mytree=None): - - writemsg("!!! pordbapi.getfetchlist() is deprecated, " + \ - "use getFetchMap() instead.\n", noiselevel=-1) - - if all: - useflags = None - elif useflags is None: - if mysettings is None: - mysettings = self.doebuild_settings - mysettings.setcpv(mypkg, mydb=self) - useflags = mysettings["PORTAGE_USE"].split() - uri_map = self.getFetchMap(mypkg, useflags=useflags, mytree=mytree) - - all_uris = [] - all_files = [] - for filename, uris in uri_map.items(): - for uri in uris: - all_uris.append(uri) - all_files.append(filename) - - return [all_uris, all_files] - def getfetchsizes(self, mypkg, useflags=None, debug=0): # returns a filename:size dictionnary of remaining downloads myebuild = self.findname(mypkg)