]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/buildhistory: exclude . in file listings
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 26 Aug 2015 13:06:35 +0000 (14:06 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 30 Aug 2015 11:34:37 +0000 (12:34 +0100)
We don't care about the permissions on the top-level directory in which
the files are contained, just everything under it; this also avoids
lists with just this entry in it for empty packages. Affects file
listings for both images and packages.

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

index e60cdd72baf62c8137530b4eb766105518d1b171..77a3c864c3b747755db043eb90838051c7e23c16 100644 (file)
@@ -435,7 +435,7 @@ buildhistory_get_sdk_installed_target() {
 buildhistory_list_files() {
        # List the files in the specified directory, 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 $1 && find . -printf "%M %-10u %-10g %10s %p -> %l\n" | sort -k5 | sed 's/ * -> $//' > $2 )
+       ( cd $1 && find . ! -path . -printf "%M %-10u %-10g %10s %p -> %l\n" | sort -k5 | sed 's/ * -> $//' > $2 )
 }
 
 buildhistory_list_pkg_files() {