mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
buildhistory: Fix intermittent package file list creation
The directory that buildhistory_list_pkg_files writes to during do_package is created by do_packagedata so a clean buildhistory doesn't have files-in-package written during the first build since packagedata happens after do_package. Ensure the output package folder is created to avoid missing files-in-package.txt files. Also it ensures that in case of `find` fails we leave with a hard error instead of hiding the error on the for loop. (From OE-Core rev: 8de9b8c1e199896b9a7bc5ed64967c6bfbf84bea) Signed-off-by: Pedro Silva Ferreira <Pedro.Silva.Ferreira@criticaltechworks.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1c3439f87c
commit
738b3b1e65
@@ -599,15 +599,12 @@ buildhistory_list_files_no_owners() {
|
|||||||
|
|
||||||
buildhistory_list_pkg_files() {
|
buildhistory_list_pkg_files() {
|
||||||
# Create individual files-in-package for each recipe's package
|
# Create individual files-in-package for each recipe's package
|
||||||
for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do
|
pkgdirlist=$(find ${PKGDEST}/* -maxdepth 0 -type d)
|
||||||
|
for pkgdir in $pkgdirlist; do
|
||||||
pkgname=$(basename $pkgdir)
|
pkgname=$(basename $pkgdir)
|
||||||
outfolder="${BUILDHISTORY_DIR_PACKAGE}/$pkgname"
|
outfolder="${BUILDHISTORY_DIR_PACKAGE}/$pkgname"
|
||||||
outfile="$outfolder/files-in-package.txt"
|
outfile="$outfolder/files-in-package.txt"
|
||||||
# Make sure the output folder exists so we can create the file
|
mkdir -p $outfolder
|
||||||
if [ ! -d $outfolder ] ; then
|
|
||||||
bbdebug 2 "Folder $outfolder does not exist, file $outfile not created"
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
buildhistory_list_files $pkgdir $outfile fakeroot
|
buildhistory_list_files $pkgdir $outfile fakeroot
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user