Commits

Michał Górny committed 9c5daa4

pkgcore: fix package sorting with 0.7.5+.

Comments (0)

Files changed (1)

gentoopm/pkgcorepm/repo.py

 
 			trees = filter(_match_ebuild_repos,
 					self._domain.named_repos.values())
+			rev = -1
+		else:
+			rev = 1
 
 		for i, r in enumerate(trees):
-			yield PkgCoreEbuildRepo(r, self._domain, i)
+			yield PkgCoreEbuildRepo(r, self._domain, rev * i)
 
 	def __init__(self, domain):
 		self._domain = domain