Patchwork [3/7] classes/buildhistory: sort FILELIST in package info

login
register
mail settings
Submitter Paul Eggleton
Date Feb. 14, 2012, 1:40 p.m.
Message ID <c93570a53d9ad6562e887f89ca0e2c70e54e6472.1329226672.git.paul.eggleton@linux.intel.com>
Download mbox | patch
Permalink /patch/21245/
State Accepted
Commit 2e9981000a211a89f88d7728393cc231e466581a
Headers show

Comments

Paul Eggleton - Feb. 14, 2012, 1:40 p.m.
The FILELIST order can vary depending on the order the files were
written which may change between builds with no ill effect, so sort the
list prior to writing it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/classes/buildhistory.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 0ee6a33..3fbe3a8 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -186,6 +186,7 @@  python buildhistory_emit_pkghistory() {
 				fstat = os.lstat(os.path.join(root, f))
 				pkginfo.size += fstat.st_size
 				filelist.append(os.sep + os.path.join(relpth, f))
+		filelist.sort()
 		pkginfo.filelist = " ".join(filelist)
 
 		write_pkghistory(pkginfo, d)