From: James Troup Date: Fri, 21 Feb 2003 19:18:24 +0000 (+0000) Subject: sort versions X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6829c52160d0e1ee1ccf15a32c6a9d0078e2708;p=dak sort versions --- diff --git a/melanie b/melanie index 42a0f1c6..bbfeba06 100755 --- a/melanie +++ b/melanie @@ -2,7 +2,7 @@ # General purpose package removal tool for ftpmaster # Copyright (C) 2000, 2001, 2002, 2003 James Troup -# $Id: melanie,v 1.35 2003-02-11 18:10:40 troup Exp $ +# $Id: melanie,v 1.36 2003-02-21 19:18:24 troup Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -291,7 +291,7 @@ def main (): packages.sort(); for package in packages: versions = d[package].keys(); - versions.sort(); + versions.sort(apt_pkg.VersionCompare); for version in versions: d[package][version].sort(utils.arch_compare_sw); summary += "%10s | %10s | %s\n" % (package, version, ", ".join(d[package][version])); @@ -371,7 +371,7 @@ def main (): Subst["__BCC__"] = "Bcc: " + ", ".join(bcc); else: Subst["__BCC__"] = "X-Filler: 42"; - Subst["__CC__"] = "X-Katie: melanie $Revision: 1.35 $"; + Subst["__CC__"] = "X-Katie: melanie $Revision: 1.36 $"; if carbon_copy: Subst["__CC__"] += "\nCc: " + ", ".join(carbon_copy); Subst["__SUITE_LIST__"] = suites_list;