summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-07-04 15:46:52 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-07-04 15:46:52 +0200
commit7b2d62a95525f407030c237f1e3448844fbaf401 (patch)
tree49ddf19835ad70175a7eb317d6120fcca01a2076 /portato/backend
parent0ee0562e55638df69905d42bf7dfa0df7465bff9 (diff)
downloadportato-7b2d62a95525f407030c237f1e3448844fbaf401.tar.gz
portato-7b2d62a95525f407030c237f1e3448844fbaf401.tar.bz2
portato-7b2d62a95525f407030c237f1e3448844fbaf401.zip
Fixed find_best_match for <portage-2.1.5
Diffstat (limited to 'portato/backend')
-rw-r--r--portato/backend/portage/system.py4
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)
hlight'> 2009-08-11Do not show masking label, if the package is not in system anymoreRené 'Necoro' Neumann1-2/+2 2009-08-11Update turkish translationGürkan Gür1-640/+676 2009-08-11Fix handling of slots in /etc/portage/*René 'Necoro' Neumann2-2/+4 2009-08-11Fix package detailsRené 'Necoro' Neumann1-1/+1 2009-08-11Fix GPytage pluginRené 'Necoro' Neumann1-2/+2 2009-08-11Update translationRené 'Necoro' Neumann2-1112/+1120 2009-08-11Update changelogRené 'Necoro' Neumann1-0/+1 2009-08-10Fixed pt_BR translationAlberto Federman Neto1-2/+5 2009-08-10Add credits for translationRené 'Necoro' Neumann2-0/+2