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

svn path=/main/trunk/; revision=8383

bin/repoman

index 1f10a91d976112562c9f621890d243140a8cfc02..0da141034ef570ec40b59e9491f017e74b488971 100755 (executable)
@@ -640,6 +640,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"
@@ -858,6 +859,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