summaryrefslogtreecommitdiff
path: root/portato/gui
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui')
-rw-r--r--portato/gui/queue.py2
-rw-r--r--portato/gui/utils.py4
-rw-r--r--portato/gui/windows/main.py6
3 files changed, 6 insertions, 6 deletions
diff --git a/portato/gui/queue.py b/portato/gui/queue.py
index eb0a43e..a75048d 100644
--- a/portato/gui/queue.py
+++ b/portato/gui/queue.py
@@ -139,7 +139,7 @@ class EmergeQueue:
try:
pkg = self._get_pkg_from_cpv(cpv, unmask)
if not pkg.is_installed():
- old = system.find_installed_packages(pkg.get_slot_cp())
+ old = system.find_packages(pkg.get_slot_cp(), "installed")
if old:
old = old[0] # assume we have only one there
cmp = pkg.compare_version(old)
diff --git a/portato/gui/utils.py b/portato/gui/utils.py
index 151ec22..01a6b2f 100644
--- a/portato/gui/utils.py
+++ b/portato/gui/utils.py
@@ -165,8 +165,8 @@ class Database (object):
"""
# get the lists
- packages = system.find_all_packages(name = category, withVersion = False)
- installed = system.find_all_installed_packages(name = category, withVersion = False)
+ packages = system.find_packages(category, withVersion = False)
+ installed = system.find_packages(category, set = "installed", withVersion = False)
# cycle through packages
for p in packages:
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py
index 1962e12..787bb28 100644
--- a/portato/gui/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -145,7 +145,7 @@ class PackageTable:
self.instPackages = self.packages = system.find_packages("=%s-%s" % (cp, version), masked = True)
else:
self.packages = system.sort_package_list(system.find_packages(cp, masked = True))
- self.instPackages = system.sort_package_list(system.find_installed_packages(cp, masked = True))
+ self.instPackages = system.sort_package_list(system.find_packages(cp, "installed", masked = True))
# version-combo-box
self.versionList.get_model().clear()
@@ -1252,7 +1252,7 @@ class MainWindow (Window):
if pkg.is_installed():
installed = set(pkg.get_iuse_flags()).intersection(pkg.get_installed_use_flags())
else:
- inst = system.find_installed_packages(pkg.get_slot_cp())
+ inst = system.find_packages(pkg.get_slot_cp(), "installed")
if inst:
installed = set(inst[0].get_iuse_flags()).intersection(inst[0].get_installed_use_flags())
else:
@@ -1428,7 +1428,7 @@ class MainWindow (Window):
if "/" not in text:
text = "/.*"+text # only look for package names
- packages = system.find_all_packages(text, withVersion = False)
+ packages = system.find_packages(text, withVersion = False)
if packages == []:
nothing_found_dialog()
=432e26e4177cf351953ac97474326a2f439beba5&follow=1'>Do not assume items to be new when their published date is newer than the las...René 'Necoro' Neumann2-7/+1 2020-05-07Updating some depsRené 'Necoro' Neumann2-2/+7 2020-05-07Better detection if a text starts with html or notRené 'Necoro' Neumann2-4/+13 2020-05-07go fmtRené 'Necoro' Neumann1-3/+2 2020-05-07Add header X-Feed2Imap-GUIDRené 'Necoro' Neumann3-1/+7 2020-05-07update changelogRené 'Necoro' Neumann1-0/+1 2020-05-07FixRené 'Necoro' Neumann1-1/+1 2020-05-07Unified publishedDate and updatedDate into one (just as the old feed2imap...)René 'Necoro' Neumann5-21/+32 2020-05-06Print version during startupRené 'Necoro' Neumann1-1/+1 2020-05-06Improve templateRené 'Necoro' Neumann3-20/+28 2020-05-05Fix pipelineRené 'Necoro' Neumann1-2/+5 2020-05-05Make changelog a part of the release pipeline (untested)René 'Necoro' Neumann2-0/+12 2cb0d60b1248627d&follow=1'>Add header X-Feed2Imap-GUIDRené 'Necoro' Neumann3-1/+7 2020-05-07update changelogRené 'Necoro' Neumann1-0/+1 2020-05-07FixRené 'Necoro' Neumann1-1/+1 2020-05-07Unified publishedDate and updatedDate into one (just as the old feed2imap...)René 'Necoro' Neumann5-21/+32 2020-05-06Print version during startupRené 'Necoro' Neumann1-1/+1 2020-05-06Improve templateRené 'Necoro' Neumann3-20/+28 2020-05-05Fix pipelineRené 'Necoro' Neumann1-2/+5 2020-05-05Make changelog a part of the release pipeline (untested)René 'Necoro' Neumann2-0/+12