summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/gui/windows/main.py10
-rw-r--r--portato/gui/windows/pkglist.py2
2 files changed, 9 insertions, 3 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py
index 5935423..5a149f8 100644
--- a/portato/gui/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -1626,14 +1626,20 @@ class MainWindow (Window):
Show the list of updateble packages.
"""
- self.show_package_list(system.get_updated_packages, UpdateWindow, "Show Updates Thread")
+ self.show_package_list(
+ lambda: (x.get_cpv() for x in system.get_updated_packages()),
+ UpdateWindow, "Show Updates Thread")
+
return True
def cb_show_world_clicked (self, *args):
"""
Show the list of world packages.
"""
- self.show_package_list(lambda: system.find_packages(pkgSet = "world", only_cpv = True), WorldListWindow)
+ self.show_package_list(
+ lambda: system.find_packages(pkgSet = "world", only_cpv = True),
+ WorldListWindow)
+
return True
def cb_show_installed_toggled (self, *args):
diff --git a/portato/gui/windows/pkglist.py b/portato/gui/windows/pkglist.py
index bd1ded8..e99e8a1 100644
--- a/portato/gui/windows/pkglist.py
+++ b/portato/gui/windows/pkglist.py
@@ -34,7 +34,7 @@ class PkgListWindow (AbstractDialog):
self.queue = queue
self.jump = jump_to
- self.packages = packages
+ self.packages = system.sort_package_list(packages, only_cpv = True)
self.build_list()