Sort scanlist and ebuildlist to ensure that repoman always
authorZac Medico <zmedico@gentoo.org>
Fri, 2 Nov 2007 22:39:58 +0000 (22:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 2 Nov 2007 22:39:58 +0000 (22:39 -0000)
processes packages in a predictable order. (trunk r8383)

svn path=/main/branches/2.1.2/; revision=8384

bin/repoman

index f279900e344eb9526379f03145fb9a096c783e2a..0fca1f015bec2b7f24a0ae86f9a0d323653a7006 100755 (executable)
@@ -637,6 +637,7 @@ elif repolevel==3:
        if catdir not in repoman_settings.categories:
                caterror(catdir)
        scanlist.append(catdir+"/"+reposplit[-1])
+scanlist.sort()
 
 profiles={}
 descfile=portdir+"/profiles/profiles.desc"
@@ -960,6 +961,7 @@ for x in scanlist:
                                fails["EAPI.unsupported"].append(os.path.join(x, y))
                                continue
                        ebuild_metadata[pf] = myaux
+       ebuildlist.sort()
 
        if len(ebuild_metadata) != len(ebuildlist):
                # If we can't access all the metadata then it's totally unsafe to