[oe-commits] Paul Eggleton : classes/buildhistory: trim trailing spaces in file listings

git at git.openembedded.org git at git.openembedded.org
Sat Mar 23 11:39:38 UTC 2013


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

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Fri Mar 22 19:53:53 2013 +0000

classes/buildhistory: trim trailing spaces in file listings

These are mildly annoying when viewing git diffs of the buildhistory
repository, so let's just get rid of them.

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/buildhistory.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index b559ebf..3892326 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -391,7 +391,7 @@ buildhistory_get_sdk_installed() {
 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 . -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 > $2 )
+	( cd $1 && 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 | sed 's/ *$//' > $2 )
 }
 
 





More information about the Openembedded-commits mailing list