From: Zac Medico Date: Fri, 2 Nov 2007 06:14:53 +0000 (-0000) Subject: Make sure vardbapi.cp_list() always sorts the results. X-Git-Tag: v2.2_pre1~465 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cecac9981e0d244a1b36776314e5fc8cce2e180d;p=portage.git Make sure vardbapi.cp_list() always sorts the results. svn path=/main/trunk/; revision=8366 --- 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]