[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. eda668423fa87898c59d1075118693714aa5a053
Holger Levsen
holger at layer-acht.org
Fri Dec 23 10:26:09 UTC 2011
The following commit has been merged in the master branch:
commit a389f641c584074d30313c493430b9cc9e97cefd
Author: Andreas Beckmann <debian at abeckmann.de>
Date: Mon Nov 21 15:17:44 2011 +0100
sort package lists by name
in the list generated by write_state_pages()
sort the packages by name
Signed-off-by: Andreas Beckmann <debian at abeckmann.de>
diff --git a/piuparts-report.py b/piuparts-report.py
index e55afa4..a7699f7 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -978,7 +978,8 @@ class Section:
for state in self._binary_db.get_states():
logging.debug("Writing page for %s" % state)
vlist = ""
- for package in self._binary_db.get_packages_in_state(state):
+ for package in sorted(self._binary_db.get_packages_in_state(state),
+ key=lambda pkg: pkg["Package"]):
vlist += "<li id=\"%s\">%s (%s)" % (
package["Package"],
self.link_to_source_summary(package["Package"]),
--
piuparts git repository
More information about the Piuparts-commits
mailing list