]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/buildhistory: sort image file list
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 7 Feb 2012 15:20:02 +0000 (15:20 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Feb 2012 10:42:52 +0000 (10:42 +0000)
Sort the contents of files-in-image.txt to avoid unnecessary changes
showing up in the history due to reordering.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/classes/buildhistory.bbclass

index 69a9d02a5ac094c640480c3231eaa8d1978160a6..3964247445657621b3160e812847b7e6b04e8cc1 100644 (file)
@@ -310,7 +310,7 @@ buildhistory_get_image_installed() {
 buildhistory_get_imageinfo() {
        # List the files in the image, but exclude date/time etc.
        # This awk script is somewhat messy, but handles where the size is not printed for device files under pseudo
-       ( cd ${IMAGE_ROOTFS} && find . -ls | awk '{ if ( $7 ~ /[0-9]/ ) printf "%s %10-s %10-s %10s %s %s %s\n", $3, $5, $6, $7, $11, $12, $13 ; else printf "%s %10-s %10-s %10s %s %s %s\n", $3, $5, $6, 0, $10, $11, $12 }' > ${BUILDHISTORY_DIR_IMAGE}/files-in-image.txt )
+       ( cd ${IMAGE_ROOTFS} && find . -ls | awk '{ if ( $7 ~ /[0-9]/ ) printf "%s %10-s %10-s %10s %s %s %s\n", $3, $5, $6, $7, $11, $12, $13 ; else printf "%s %10-s %10-s %10s %s %s %s\n", $3, $5, $6, 0, $10, $11, $12 }' | sort -k5 > ${BUILDHISTORY_DIR_IMAGE}/files-in-image.txt )
 
        # Record some machine-readable meta-information about the image
        echo -n > ${BUILDHISTORY_DIR_IMAGE}/image-info.txt