diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-12-20 16:26:25 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-12-20 16:26:25 +0000 |
commit | bd2593c7bf1a7816ec3f87ac192fb17cb4b5276d (patch) | |
tree | bd8ba1cdc8286342c42db72e40c994f52f1d45d5 /pym/portage.py | |
parent | 5efdd6b3d4b870896484b0ea0f05d0d406727c98 (diff) | |
download | portage-bd2593c7bf1a7816ec3f87ac192fb17cb4b5276d.tar.gz portage-bd2593c7bf1a7816ec3f87ac192fb17cb4b5276d.tar.bz2 portage-bd2593c7bf1a7816ec3f87ac192fb17cb4b5276d.zip |
Remove some redunant categories code.
svn path=/main/branches/2.1.2/; revision=8996
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/pym/portage.py b/pym/portage.py index cb69a9c56..abe0ebb73 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -6270,14 +6270,9 @@ class vardbapi(dbapi): del self.cpcache[mycp] return returnme - def cpv_all(self,use_cache=1): - returnme=[] - basepath = self.root+VDB_PATH+"/" - categories = self.categories - if not categories: - categories = [cat for cat in listdir(basepath, dirsonly=True) \ - if self._category_re.match(cat)] - self.categories = categories + def cpv_all(self, use_cache=1): + returnme = [] + basepath = os.path.join(self.root, VDB_PATH) + os.path.sep for x in listdir(basepath, EmptyOnError=1, ignorecvs=1, dirsonly=1): if not self._category_re.match(x): continue |