From: Zac Medico Date: Wed, 13 Dec 2006 01:19:19 +0000 (-0000) Subject: Move the biolerplate cpv_all() implementation from portdbapi to dbapi. X-Git-Tag: v2.1.2~309 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dbfcaa0658b5cd272071b21631fc15f49ec0d245;p=portage.git Move the biolerplate cpv_all() implementation from portdbapi to dbapi. svn path=/main/trunk/; revision=5281 --- diff --git a/pym/portage.py b/pym/portage.py index 2d9d11d3f..3e77d53c3 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -4335,6 +4335,12 @@ class dbapi: def cp_list(self,cp,use_cache=1): return + def cpv_all(self): + cpv_list = [] + for cp in self.cp_all(): + cpv_list.extend(self.cp_list(cp)) + return cpv_list + def aux_get(self,mycpv,mylist): "stub code for returning auxiliary db information, such as SLOT, DEPEND, etc." 'input: "sys-apps/foo-1.0",["SLOT","DEPEND","HOMEPAGE"]' @@ -5526,12 +5532,6 @@ class portdbapi(dbapi): l.sort() return l - def cpv_all(self): - cpv_list = [] - for cp in self.cp_all(): - cpv_list.extend(self.cp_list(cp)) - return cpv_list - def p_list(self,mycp): d={} for oroot in self.porttrees: