summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)