summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-10-05 15:30:57 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-10-05 15:30:57 +0200
commit63cdb7c521133a9d621f9407c4c956e995018ddd (patch)
tree5912ab8cd671cf415c7b243348e4c8901a957092
parentce9f4821e2238ca2961002ad3f872e8432267ee2 (diff)
downloadportato-63cdb7c521133a9d621f9407c4c956e995018ddd.tar.gz
portato-63cdb7c521133a9d621f9407c4c956e995018ddd.tar.bz2
portato-63cdb7c521133a9d621f9407c4c956e995018ddd.zip
Now have it the sorted way in PkgLists
-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()
+0100'>2006-12-11Move global variables + callback functions into shared.cLars Hjemli4-82/+86 2006-12-11Move functions for generic object output into ui-view.cLars Hjemli4-34/+43 2006-12-11Move log-functions into ui-log.cLars Hjemli5-111/+121 2006-12-11Move repo summary functions into ui-summary.cLars Hjemli4-47/+59 2006-12-11Move functions for repolist output into ui-repolist.cLars Hjemli5-70/+90 2006-12-11Move common output-functions into ui-shared.cLars Hjemli4-82/+99 2006-12-11Rename config.c to parsing.c + move cgit_parse_query from cgit.c to parsing.cLars Hjemli4-28/+29 2006-12-11Avoid infinite loops in caching layerLars Hjemli3-14/+31 2006-12-11Let 'make install' clear all cachefilesLars Hjemli1-0/+2 2006-12-11Fix cache algorithm loopholeLars Hjemli3-11/+16 2006-12-10Add version identifier in generated filesLars Hjemli2-9/+14 2006-12-10Add license file and copyright noticesLars Hjemli5-0/+372 2006-12-10Add caching infrastructureLars Hjemli9-28/+353