diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-11-21 04:06:17 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-11-21 04:06:17 +0000 |
commit | 0260e8005f5a6883c07d6324c45578ebcb0177fc (patch) | |
tree | 6d9f7d0e6e5b92415b8775da9037c5afb3bedb46 /pym/_emerge/search.py | |
parent | 04f54351ecbc2d93b52faad931f22d2eb8b238ee (diff) | |
download | portage-0260e8005f5a6883c07d6324c45578ebcb0177fc.tar.gz portage-0260e8005f5a6883c07d6324c45578ebcb0177fc.tar.bz2 portage-0260e8005f5a6883c07d6324c45578ebcb0177fc.zip |
Optimized the code for bug #288083 and make it handle more cases. Now Packagev2.1.7.6
instances have 'visible' and 'masks' attributes, since this information needs
to be accessed in more places now. (trunk r14859)
svn path=/main/branches/2.1.7/; revision=14870
Diffstat (limited to 'pym/_emerge/search.py')
-rw-r--r-- | pym/_emerge/search.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pym/_emerge/search.py b/pym/_emerge/search.py index dd11c4f0c..5c82b1a75 100644 --- a/pym/_emerge/search.py +++ b/pym/_emerge/search.py @@ -11,7 +11,6 @@ from portage.output import bold, bold as white, darkgreen, green, red from portage.util import writemsg_stdout from _emerge.Package import Package -from _emerge.visible import visible class search(object): @@ -111,9 +110,10 @@ class search(object): pkg_type = "installed" elif built: pkg_type = "binary" - return visible(self.settings, - Package(type_name=pkg_type, root_config=self.root_config, - cpv=cpv, built=built, installed=installed, metadata=metadata)) + return Package(type_name=pkg_type, + root_config=self.root_config, + cpv=cpv, built=built, installed=installed, + metadata=metadata).visible def _xmatch(self, level, atom): """ |