diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-07-04 15:46:52 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-07-04 15:46:52 +0200 |
commit | 7b2d62a95525f407030c237f1e3448844fbaf401 (patch) | |
tree | 49ddf19835ad70175a7eb317d6120fcca01a2076 /portato | |
parent | 0ee0562e55638df69905d42bf7dfa0df7465bff9 (diff) | |
download | portato-7b2d62a95525f407030c237f1e3448844fbaf401.tar.gz portato-7b2d62a95525f407030c237f1e3448844fbaf401.tar.bz2 portato-7b2d62a95525f407030c237f1e3448844fbaf401.zip |
Fixed find_best_match for <portage-2.1.5
Diffstat (limited to '')
-rw-r--r-- | portato/backend/portage/system.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py index feaf4df..c30ba7a 100644 --- a/portato/backend/portage/system.py +++ b/portato/backend/portage/system.py @@ -167,8 +167,8 @@ class PortageSystem (SystemInterface): if VERSION >= (2,1,5): t += [pkg.get_cpv() for pkg in self.find_packages(search_key, "installed") if not (pkg.is_testing(True) or pkg.is_masked())] - else: - t = self.find_packages(search_key, "installed", only_cpv=True) + elif not only_installed: # no need to run twice + t += self.find_packages(search_key, "installed", only_cpv=True) if t: t = unique_array(t) |