RepoConfigLoader: fix last commit
authorZac Medico <zmedico@gentoo.org>
Wed, 19 Jun 2013 19:21:44 +0000 (12:21 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 19 Jun 2013 19:21:44 +0000 (12:21 -0700)
pym/portage/repository/config.py

index 7de695449287782b186eeba2053fac8ba04937de..49af5e81d3822f8e66d1b315df42fc709a0d0804 100644 (file)
@@ -619,7 +619,7 @@ class RepoConfigLoader(object):
                # Include repo.name in sort key, for predictable sorting
                # even when priorities are equal.
                prepos_order = sorted(prepos.items(),
-                       key=lambda r:(r[1].priority or 0, repo.name))
+                       key=lambda r:(r[1].priority or 0, r[1].name))
 
                # filter duplicates from aliases, by only including
                # items where repo.name == key