From 1f09f02570473c49285b7e14c99accc240769a79 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lallement Date: Tue, 6 May 2014 09:10:53 +0200 Subject: [PATCH] tests/autopkgtest.py: Use the right key for sorting history --- tests/autopkgtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/autopkgtest.py b/tests/autopkgtest.py index 13d4437..49eccce 100755 --- a/tests/autopkgtest.py +++ b/tests/autopkgtest.py @@ -176,7 +176,7 @@ echo "$@" >> /%s/adt-britney.log ''' % self.data.path) records.sort(cmp=apt_pkg.version_compare, key=operator.itemgetter(4)) records.sort(key=operator.itemgetter(3)) records.sort(cmp=apt_pkg.version_compare, key=operator.itemgetter(1)) - records.sort(key=operator.itemgetter(1)) + records.sort() return "\n".join([' '.join(x) for x in records])