diff options
-rw-r--r-- | meta/classes/buildhistory.bbclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 3d459c715a..190c38e114 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
@@ -435,7 +435,11 @@ buildhistory_get_sdk_installed_target() { | |||
435 | buildhistory_list_files() { | 435 | buildhistory_list_files() { |
436 | # List the files in the specified directory, but exclude date/time etc. | 436 | # List the files in the specified directory, but exclude date/time etc. |
437 | # This awk script is somewhat messy, but handles where the size is not printed for device files under pseudo | 437 | # This awk script is somewhat messy, but handles where the size is not printed for device files under pseudo |
438 | ( cd $1 && find . ! -path . -printf "%M %-10u %-10g %10s %p -> %l\n" | sort -k5 | sed 's/ * -> $//' > $2 ) | 438 | if [ "$3" = "fakeroot" ] ; then |
439 | ( cd $1 && ${FAKEROOTENV} ${FAKEROOTCMD} find . ! -path . -printf "%M %-10u %-10g %10s %p -> %l\n" | sort -k5 | sed 's/ * -> $//' > $2 ) | ||
440 | else | ||
441 | ( cd $1 && find . ! -path . -printf "%M %-10u %-10g %10s %p -> %l\n" | sort -k5 | sed 's/ * -> $//' > $2 ) | ||
442 | fi | ||
439 | } | 443 | } |
440 | 444 | ||
441 | buildhistory_list_pkg_files() { | 445 | buildhistory_list_pkg_files() { |
@@ -449,7 +453,7 @@ buildhistory_list_pkg_files() { | |||
449 | bbdebug 2 "Folder $outfolder does not exist, file $outfile not created" | 453 | bbdebug 2 "Folder $outfolder does not exist, file $outfile not created" |
450 | continue | 454 | continue |
451 | fi | 455 | fi |
452 | buildhistory_list_files ${pkgdir} ${outfile} | 456 | buildhistory_list_files $pkgdir $outfile fakeroot |
453 | done | 457 | done |
454 | } | 458 | } |
455 | 459 | ||