From cecac9981e0d244a1b36776314e5fc8cce2e180d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 2 Nov 2007 06:14:53 +0000 Subject: [PATCH] Make sure vardbapi.cp_list() always sorts the results. svn path=/main/trunk/; revision=8366 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index bfa052f6e..291452f22 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -368,8 +368,8 @@ class vardbapi(dbapi): if len(mysplit) > 1: if ps[0] == mysplit[1]: returnme.append(mysplit[0]+"/"+x) + self._cpv_sort_ascending(returnme) if use_cache: - self._cpv_sort_ascending(returnme) self.cpcache[mycp] = [mystat, returnme[:]] elif self.cpcache.has_key(mycp): del self.cpcache[mycp] -- 2.26.2