Sort digests and manifests (to look nice and making them diff'able)
authorJason Stubbs <jstubbs@gentoo.org>
Thu, 29 Sep 2005 16:45:42 +0000 (16:45 -0000)
committerJason Stubbs <jstubbs@gentoo.org>
Thu, 29 Sep 2005 16:45:42 +0000 (16:45 -0000)
svn path=/main/branches/2.0/; revision=2063

pym/portage.py

index 0c399295c12ed1db21f3d7671121d33b32a6f78b..86bf070fe46d21d5345344e8463a1e0c61b08a4a 100644 (file)
@@ -2082,6 +2082,7 @@ def digestgen(myarchives,mysettings,overwrite=1,manifestonly=0):
                if os.path.exists(digestfn):
                        myolddigest = digestParseFile(digestfn)
 
+               myarchives.sort()
                mydigests=digestCreate(myarchives, basedir, oldDigest=myolddigest)
                if mydigests==None: # There was a problem, exit with an errorcode.
                        return 0
@@ -2108,6 +2109,7 @@ def digestgen(myarchives,mysettings,overwrite=1,manifestonly=0):
        print green(">>> Generating manifest file...")
        mypfiles=listdir(pbasedir,recursive=1,filesonly=1,ignorecvs=1,EmptyOnError=1)
        mypfiles=cvstree.apply_cvsignore_filter(mypfiles)
+       mypfiles.sort()
        for x in ["Manifest"]:
                if x in mypfiles:
                        mypfiles.remove(x)