mirror of
https://git.yoctoproject.org/poky
synced 2026-02-27 03:49:41 +01:00
buildhistory: simplify buildhistory_list_files()
Avoid duplicating shell code for the two cases, fakeroot/non-fakeroot. (From OE-Core rev: c4a931df28f45f95f19a13062b8dc38db60da342) Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
fbc8f2fb66
commit
18c1b63cb2
@@ -519,12 +519,14 @@ 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
|
||||
# This is somewhat messy, but handles where the size is not printed for device files under pseudo
|
||||
( cd $1
|
||||
find_cmd='find . ! -path . -printf "%M %-10u %-10g %10s %p -> %l\n"'
|
||||
if [ "$3" = "fakeroot" ] ; then
|
||||
( cd $1 && ${FAKEROOTENV} ${FAKEROOTCMD} find . ! -path . -printf "%M %-10u %-10g %10s %p -> %l\n" | sort -k5 | sed 's/ * -> $//' > $2 )
|
||||
eval ${FAKEROOTENV} ${FAKEROOTCMD} $find_cmd
|
||||
else
|
||||
( cd $1 && find . ! -path . -printf "%M %-10u %-10g %10s %p -> %l\n" | sort -k5 | sed 's/ * -> $//' > $2 )
|
||||
fi
|
||||
eval $find_cmd
|
||||
fi | sort -k5 | sed 's/ * -> $//' > $2 )
|
||||
}
|
||||
|
||||
buildhistory_list_pkg_files() {
|
||||
|
||||
Reference in New Issue
Block a user