Make sure vardbapi.cp_list() always sorts the results.
authorZac Medico <zmedico@gentoo.org>
Fri, 2 Nov 2007 06:14:53 +0000 (06:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 2 Nov 2007 06:14:53 +0000 (06:14 -0000)
svn path=/main/trunk/; revision=8366

pym/portage/dbapi/vartree.py

index bfa052f6eab142110d267a5b40df2c43a0b7179a..291452f22de13e47ef963a08df6cdc2a75e9521a 100644 (file)
@@ -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]