diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-12-13 01:19:19 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-12-13 01:19:19 +0000 |
commit | dbfcaa0658b5cd272071b21631fc15f49ec0d245 (patch) | |
tree | c94d0927c13aab9a43c432b6d333e33977de238c | |
parent | fa8f5498ae6e83643e48478c26b6f25592ca4f31 (diff) | |
download | portage-dbfcaa0658b5cd272071b21631fc15f49ec0d245.tar.gz portage-dbfcaa0658b5cd272071b21631fc15f49ec0d245.tar.bz2 portage-dbfcaa0658b5cd272071b21631fc15f49ec0d245.zip |
Move the biolerplate cpv_all() implementation from portdbapi to dbapi.
svn path=/main/trunk/; revision=5281
-rw-r--r-- | pym/portage.py | 12 |
1 files 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: |