From dbfcaa0658b5cd272071b21631fc15f49ec0d245 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 13 Dec 2006 01:19:19 +0000 Subject: [PATCH] Move the biolerplate cpv_all() implementation from portdbapi to dbapi. svn path=/main/trunk/; revision=5281 --- pym/portage.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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: -- 2.26.2