summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi/virtual.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-18 04:03:38 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-18 04:03:38 +0000
commit9676a2aa192bf640d70fe4a9aff6005996659057 (patch)
tree3f18cc8b0731ce6a0a6a82c8ce2cc186adaff04e /pym/portage/dbapi/virtual.py
parentebd42fc6da1aca53badec4b34f118d7f106f3835 (diff)
downloadportage-9676a2aa192bf640d70fe4a9aff6005996659057.tar.gz
portage-9676a2aa192bf640d70fe4a9aff6005996659057.tar.bz2
portage-9676a2aa192bf640d70fe4a9aff6005996659057.zip
Use the --depclean algorithm to make --prune safe. The old unsafe --prune will be used if the --nodeps option is specified.
svn path=/main/trunk/; revision=7305
Diffstat (limited to 'pym/portage/dbapi/virtual.py')
-rw-r--r--pym/portage/dbapi/virtual.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/pym/portage/dbapi/virtual.py b/pym/portage/dbapi/virtual.py
index 983e39b7f..467eb032c 100644
--- a/pym/portage/dbapi/virtual.py
+++ b/pym/portage/dbapi/virtual.py
@@ -39,10 +39,7 @@ class fakedbapi(dbapi):
return self.cpdict[mycp]
def cp_all(self):
- returnme=[]
- for x in self.cpdict:
- returnme.extend(self.cpdict[x])
- return returnme
+ return list(self.cpdict)
def cpv_all(self):
return self.cpvdict.keys()