diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-06-07 16:39:45 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-06-07 16:39:45 +0200 |
commit | 558909989e8bcc2911b4aa49b54485cc0e6011f4 (patch) | |
tree | 8d3bf9b4f0fb12700eb38d85c852186ebf920a6e /portato | |
parent | 83e6f0a0c43e82b0c5a932883216066bb53cf666 (diff) | |
download | portato-558909989e8bcc2911b4aa49b54485cc0e6011f4.tar.gz portato-558909989e8bcc2911b4aa49b54485cc0e6011f4.tar.bz2 portato-558909989e8bcc2911b4aa49b54485cc0e6011f4.zip |
Also show masked best matches when asked for only_installed
Diffstat (limited to '')
-rw-r--r-- | portato/backend/portage/system.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py index 459fe07..51f4857 100644 --- a/portato/backend/portage/system.py +++ b/portato/backend/portage/system.py @@ -176,8 +176,10 @@ class PortageSystem (SystemInterface): else: raise - if self._version >= (2,1,5) or only_installed: - t += [pkg.get_cpv() for pkg in self.find_installed_packages(search_key) if not (pkg.is_testing(True) or pkg.is_masked())] + if self._version >= (2,1,5): + t += [pkg.get_cpv() for pkg in self.find_installed_packages(search_key) if not (pkg.is_testing(True) or pkg.is_masked())] + else: + t = self.find_installed_packages(search_key, only_cpv=True) if t: t = unique_array(t) |