[oe-commits] Paul Eggleton : classes/buildhistory: exclude . in file listings

git at git.openembedded.org git at git.openembedded.org
Sun Aug 30 11:48:24 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: d503122646b1b148113a4be31b7e88723459dae6
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d503122646b1b148113a4be31b7e88723459dae6

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Wed Aug 26 14:06:35 2015 +0100

classes/buildhistory: exclude . in file listings

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 at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/classes/buildhistory.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index e60cdd7..77a3c86 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -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() {



More information about the Openembedded-commits mailing list